throwIfCancelled method
Throws CancelledException if cancellation has been requested.
Implementation
void throwIfCancelled() {
if (isCancelled) {
throw CancelledException();
}
}
Throws CancelledException if cancellation has been requested.
void throwIfCancelled() {
if (isCancelled) {
throw CancelledException();
}
}