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

orElseAsyncForOption

Return input as T if the passed input is Some(T). Otherwise, return the result of recoverer.

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

§Type Parameters

§Parameters

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

§Return Type

§
Promise<Option<T>>
[src]