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.
Type Parameters
Section titled “Type Parameters”T
Parameters
Section titled “Parameters”signal
Section titled “signal”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.
Returns
Section titled “Returns”T
Whatever fn returns, unchanged.