close method

Future<void> close()

Close all open connections in the cluster.

Implementation

Future<void> close() async {
  while (_peers.isNotEmpty) {
    await _peers.removeLast().close();
  }
}