Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

unwrapOrElseAsyncForResult

Unwraps input, returns the content of an Ok(T). If the value is an Err(E) then it calls recoverer with its value.

function unwrapOrElseAsyncForResult<T, E>(input: Result<T, E>, recoverer: AsyncRecoveryFromErrorFn<E, T>): Promise<T>;
§
unwrapOrElseAsyncForResult<T, E>(input: Result<T, E>, recoverer: AsyncRecoveryFromErrorFn<E, T>): Promise<T>
[src]

§Type Parameters

§Parameters

§
input: Result<T, E>
[src]
§
recoverer: AsyncRecoveryFromErrorFn<E, T>
[src]

§Return Type

§
Promise<T>
[src]