CancelToken.isCancelled

bool isCancelled() @property const @safe nothrow @nogc

Check if cancellation has been requested.

Returns

true when the token is cancelled.