throwIfCancelled method
void
throwIfCancelled()
Throws immediately when cancellation has already been requested.
Implementation
void throwIfCancelled() {
_consumed = true;
if (isCancelled) throw _reason!;
}
Throws immediately when cancellation has already been requested.
void throwIfCancelled() {
_consumed = true;
if (isCancelled) throw _reason!;
}