enterUncancellable method

  1. @protected
void enterUncancellable()

Opens an uncancellable section: a rejectable cancellation arriving now is held, and the job accepts it only when the section closes.

Sections nest.

Implementation

@protected
void enterUncancellable() => _uncancellableDepth++;