throwIfCancelled method
void
throwIfCancelled()
Throws LevitTaskCancelledException when cancellation was requested.
Implementation
void throwIfCancelled() {
if (isCancelled) {
throw LevitTaskCancelledException(taskId, executionId);
}
}