|
Last change
on this file since a762898 was a762898, checked in by istevanoska <ilinastevanoska@…>, 5 months ago |
|
Added visualizations
|
-
Property mode
set to
100644
|
|
File size:
305 bytes
|
| Line | |
|---|
| 1 | 'use strict';
|
|---|
| 2 |
|
|---|
| 3 | Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|---|
| 4 |
|
|---|
| 5 | async function attemptAsync(func) {
|
|---|
| 6 | try {
|
|---|
| 7 | const result = await func();
|
|---|
| 8 | return [null, result];
|
|---|
| 9 | }
|
|---|
| 10 | catch (error) {
|
|---|
| 11 | return [error, null];
|
|---|
| 12 | }
|
|---|
| 13 | }
|
|---|
| 14 |
|
|---|
| 15 | exports.attemptAsync = attemptAsync;
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.