Skip to content

catchSilently

catchSilently<T>(work?): T | undefined

Defined in: packages/core/src/function/settle.ts:30

Runs work, discarding any error it throws. See catchSilentlyAsync.

T

(() => T) | null

Action to run. Omitted (or null) is a no-op.

T | undefined

work’s result, or undefined if it threw.