wait method

Future<void> wait()

Implementation

Future<void> wait() async {
  if (_counter > 0) {
    return _completer.future;
  }
}