leaveUncancellable method
- @protected
Closes a section opened by enterUncancellable and lets a held cancellation through — the outermost section is the one that lands it, and a job that finished meanwhile ignores it as it would any other late cancellation.
Implementation
@protected
void leaveUncancellable() {
if (--_uncancellableDepth > 0) {
return;
}
final held = _heldCancel;
if (held == null) {
return;
}
_heldCancel = null;
_heldBehindTimeout = null;
cancelWith(held);
}