Skip to content

catchOutOfBandApplyAsync

catchOutOfBandApplyAsync<A, R>(func, args): Promise<R | undefined>

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

Calls a function, containing any error it throws or rejects with — the error still surfaces, out of band, instead of propagating to this call’s caller.

A extends unknown[]

R

MaybeAsyncCallable<A, R>

The function to call.

A

Arguments to pass to it.

Promise<R | undefined>

The function’s result, or undefined if it threw or rejected.