throwIfCancelled method

void throwIfCancelled()

Throws CancelledException if this token has been cancelled.

Implementation

void throwIfCancelled() {
  if (_isCancelled) {
    throw const CancelledException();
  }
}