catchSilentlyAsync
catchSilentlyAsync<
T>(work?):Promise<T|undefined>
Defined in: packages/core/src/function/settle.ts:14
Runs work, discarding any error it throws or rejects with.
Unlike catchOutOfBandAsync, which still surfaces the error out of band
via queueMicrotask, this truly discards it — for a best-effort action whose
failure must never be reported at all (e.g. a catch block’s own teardown,
which must not mask the failure that made it necessary in the first place).
Type Parameters
Section titled “Type Parameters”T
Parameters
Section titled “Parameters”(() => MaybePromiseLike<T>) | null
Action to run. Omitted (or null) is a no-op.
Returns
Section titled “Returns”Promise<T | undefined>
The resolved value, or undefined if work threw or rejected.