shutdownAll method

Future<void> shutdownAll()

Shuts down every client and stops the idle sweep.

Implementation

Future<void> shutdownAll() async {
  _disposed = true;
  _idleTimer?.cancel();
  _idleTimer = null;
  final clients = _clients.values.toList();
  _clients.clear();
  for (final client in clients) {
    await client.shutdown();
  }
}