Skip to content

catchOutOfBandAsync

catchOutOfBandAsync<T>(work): Promise<T | undefined>

Defined in: packages/core/src/function/no-throw.ts:73

Runs work, containing any error it throws or rejects with. See catchOutOfBandApplyAsync.

T

MaybeAsyncCallable<[], T>

The action to run.

Promise<T | undefined>

work’s result, or undefined if it threw or rejected.