A source for generating CancellationTokens. First create a CancellationTokenSource, then using the token property to obtain the cancellation token. The token can be cancelled by calling cancel() on the CancellationTokenSource.
Cancels the CancellationToken, setting isCancellationRequested to true, and invoking any registered listeners.
Removes subscriptions that were created using register().
Gets the cancellation token.
Creates a CancellationToken that does nothing.
A source for generating CancellationTokens. First create a CancellationTokenSource, then using the token property to obtain the cancellation token. The token can be cancelled by calling cancel() on the CancellationTokenSource.