fromAsyncThrowable
fromAsyncThrowable<
T>(fn):Promise<Result<T,string>>
Defined in: packages/core/src/result.ts:58
Catch an async throw/rejection and turn it into Err with a string message.
Type Parameters
Section titled “Type Parameters”T
Parameters
Section titled “Parameters”() => Promise<T>
Returns
Section titled “Returns”Promise<Result<T, string>>