Skip to content

CallDeadline

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

A started wall-clock budget: the signal to hand the call, and the promise that says it expired.

readonly expired: Promise<typeof CALL_TIMED_OUT>

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

Resolves to CALL_TIMED_OUT when the budget expires. Never rejects, so it can be raced against a call without the loser becoming a rejection of its own.


readonly signal: AbortSignal

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

The signal to pass to the provider call. Aborted when — and only when — the budget expires.

dispose(): void

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

Clear the timer. Call this in a finally on every exit from the budgeted region, including the successful one: a timer left armed keeps the event loop alive for the rest of the budget, which is a smaller version of the very hang this module exists to end.

void