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

unwrapOrElseAsyncForOption

Unwraps a result input, returns the content of an Some(T). If the value is an None then it calls def with its value.

function unwrapOrElseAsyncForOption<T>(input: Option<T>, recoverer: AsyncRecoveryFn<T>): Promise<T>;
§
unwrapOrElseAsyncForOption<T>(input: Option<T>, recoverer: AsyncRecoveryFn<T>): Promise<T>
[src]

§Type Parameters

§Parameters

§
input: Option<T>
[src]
§
recoverer: AsyncRecoveryFn<T>
[src]

§Return Type

§
Promise<T>
[src]