This repository has been archived on 2026-03-28. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
StasisWarden-Legacy/node_modules/es-toolkit/dist/util/attemptAsync.mjs
T

12 lines
204 B
JavaScript

async function attemptAsync(func) {
try {
const result = await func();
return [null, result];
}
catch (error) {
return [error, null];
}
}
export { attemptAsync };