Lift (...args) => Promise<Result<T, E>> to (...args) => ResultAsync<T, E>. Catches unexpected promise rejections (defects) via onDefect or UnexpectedError.
(...args) => Promise<Result<T, E>>
(...args) => ResultAsync<T, E>
onDefect
Optional
Lift
(...args) => Promise<Result<T, E>>to(...args) => ResultAsync<T, E>. Catches unexpected promise rejections (defects) viaonDefector UnexpectedError.