Readonly
isIndicates whether cancellation has occurred.
Add a cancellation handler function. The handler will be invoked synchronously if this.isCanceled === true. Otherwise, it will be invoked synchronously upon cancellation, unless it is removed prior to cancellation.
The handler function must not throw any exceptions when called.
The handler function must not already be registered.
A function that unregisters the handler.
The handler function to add.
Add a cancellation handler function. The handler will be invoked synchronously if this.isCanceled === true. Otherwise, it will be invoked synchronously upon cancellation, unless it is removed prior to cancellation.
The handler function must not throw any exceptions when called.
The handler function must not already be registered.
A function that unregisters the handler.
Generated using TypeDoc
Interface used by cancelable operations to monitor whether cancellation has occurred.
Note that this interface does not provide any way to trigger cancellation; for that, CancellationTokenSource is used.