The component that's using the controller.
The abort signal that will cause the wrapped promises to cancel. This signal can be used externally.
Makes a Promise cancellable by racing it against a Promise that only cancels.
The type of the value the Promise
to be
wrapped resolves to.
A new Promise
that will resolve if the
promise
parameter resolves or reject with the 'abort'
Event
raised by the
abortSignal
if the
promise is cancelled.
Generated using TypeDoc
A controller that allows Promises to be cancelled.
Note that all Promises made cancellable with this controller are cancelled with the same AbortSignal. Multiple instances of the controller should be used if multiple signals are desired.