isCancellationRequested property
bool
get
isCancellationRequested
Gets whether cancellation has been requested for this CancellationTokenSource.
This property indicates whether cancellation has been requested for this token source, such as due to a call to its cancel method.
Implementation
bool get isCancellationRequested => _state != _notCanceledState;