CancelToken.isValid

bool isValid() @property const pure nothrow @nogc @safe

Check if this token is valid.

Returns

true when the token refers to a valid cancellation state.