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.
Properties
Section titled “Properties”expired
Section titled “expired”
readonlyexpired:Promise<typeofCALL_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.
signal
Section titled “signal”
readonlysignal: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.
Methods
Section titled “Methods”dispose()
Section titled “dispose()”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.
Returns
Section titled “Returns”void