abortable
abortable<
A>(factory):object
Defined in: Core/Task.ts:347
Creates a Task paired with an abort handle. When abort() is called the
AbortSignal passed to the factory is fired, cancelling any in-flight
operation (e.g. a fetch) immediately.
If an outer signal is also present (passed at the call site), aborting it propagates into the internal controller.
Type Parameters
Section titled “Type Parameters”A
Parameters
Section titled “Parameters”factory
Section titled “factory”(signal) => Promise<A>
Returns
Section titled “Returns”object
abort()
Section titled “abort()”abort: () =>
void
Returns
Section titled “Returns”void
task:
Task<A>