throwIfCancelled method

void throwIfCancelled()

Throws LevitTaskCancelledException when cancellation was requested.

Implementation

void throwIfCancelled() {
  if (_isCancelled) {
    throw LevitTaskCancelledException(taskId, executionId);
  }
}