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

orElseAsyncForResult

Calls recoverer and return its returned value if the result is Err(E), otherwise returns the Ok(T) value of self.

function orElseAsyncForResult<T, E, F>(input: Result<T, E>, recoverer: ResultAsyncTryRecoveryFromErrorFn<E, T, F>): Promise<Result<T, F>>;
§
orElseAsyncForResult<T, E, F>(input: Result<T, E>, recoverer: ResultAsyncTryRecoveryFromErrorFn<E, T, F>): Promise<Result<T, F>>
[src]

§Type Parameters

§Parameters

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

§Return Type

§
Promise<Result<T, F>>
[src]