TKMCancellationToken
Objects that allow cancelling long running operations. They are most often used to control async
program flows in conjunction with TKMPromise<T>
. Cancellation tokens can be produced using
See also
TKMCancellationTokenSource
See also
TKMPromise<T>
-
Returns whether cancellation has been requested.
-
When invoked, this method will cause this cancellation token to throw in the event of a cancellation request.
-
Returns the cancellation message if any.
-
Registers a function that is invoked when cancellation is requested. The callback is invoked on the current AsyncScheduler. If a listener is added while already in a cancelled state, this listener is called immediately and synchronously.
-
Registers a function that is invoked when cancellation is requested. If a listener is added while already in a cancelled state, this listener is called immediately and synchronously.