Skip to content

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.

T

() => Promise<T>

Promise<Result<T, string>>