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.
Type Parameters
Section titled “Type Parameters”A extends unknown[]
R
Parameters
Section titled “Parameters”MaybeAsyncCallable<A, R>
The function to call.
A
Arguments to pass to it.
Returns
Section titled “Returns”Promise<R | undefined>
The function’s result, or undefined if it threw or rejected.