Skip to content

runWithCallSignal

runWithCallSignal<T>(signal, fn): T

Defined in: packages/core/src/runtime/callSignalContext.ts:77

Run fn with signal as the ambient call signal, for fn and everything it awaits.

T

AbortSignal

The deadline’s signal.

() => T

Starts the provider call. The context has to be live at the moment the client’s fetch is invoked, which is why this wraps the start of the call rather than the await of its result.

T

Whatever fn returns, unchanged.