tryAsync<T, E = Error>(fn: () => Promise<T>): Promise<Result<T, E>>
Wrap an async function with try-catch and return a Promise.
Wrap an async function with try-catch and return a Promise.