Skip to content

withCallDeadline

withCallDeadline<T>(timeoutMs, start): Promise<typeof CALL_TIMED_OUT | T>

Defined in: packages/core/src/runtime/abortableCall.ts:183

The single-shot form: start a budget, run one call under it, and dispose the budget on every exit — including the throwing one, which is why the finally is not optional.

T

number

The wall-clock budget in milliseconds.

(signal) => Promise<T>

As raceCallDeadline’s.

Promise<typeof CALL_TIMED_OUT | T>