Interface representing a cancellation token. Used to signal and handle cancellation of asynchronous operations.
Checks if a cancellation has been requested.
True if cancellation is requested, false otherwise.
Throws an exception if cancellation has been requested.
OperationCanceledException if isCancellationRequested is true.
isCancellationRequested
Interface representing a cancellation token. Used to signal and handle cancellation of asynchronous operations.