cancelConfigWatchers method

Future<void> cancelConfigWatchers({
  1. required bool shouldQuit,
})

cancels all watchers

Implementation

Future<void> cancelConfigWatchers({required bool shouldQuit}) async {
  for (final completer in _completers.values) {
    completer.complete(shouldQuit);
  }

  _completers.clear();
}