acquire method

Future<void> acquire()

Implementation

Future<void> acquire() async {
  Completer? completer = _completer;

  if (completer != null) {
    await completer.future;
  }

  _completer = Completer();
}