throwIfCancellationRequested method

void throwIfCancellationRequested()

Implementation

void throwIfCancellationRequested() {
  if (isCanceled) {
    throw OperationCanceledError('this token has aleady canceled');
  }
}