inUncancellableSection property

  1. @protected
bool get inUncancellableSection

Whether a section opened by enterUncancellable is open right now.

For diagnostics: an engine that is waiting for this job and wants to say why. An open section is not a held cancellation — nobody may have asked; heldCancel is the one that says whether somebody did.

Implementation

@protected
bool get inUncancellableSection => _uncancellableDepth > 0;