hold method

void hold()

Keeps every following call from Dart pending until release.

Implementation

void hold() => _gate ??= Completer<void>();