source: node_modules/es-toolkit/dist/util/attemptAsync.mjs@ a762898

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: 204 bytes
Line 
1async function attemptAsync(func) {
2 try {
3 const result = await func();
4 return [null, result];
5 }
6 catch (error) {
7 return [error, null];
8 }
9}
10
11export { attemptAsync };
Note: See TracBrowser for help on using the repository browser.