closeAll method

Future<void> closeAll()

Closes all managed connections

Implementation

Future<void> closeAll() async {
  final connections = List<TransportConn>.from(_connections.keys);
  await Future.wait(
    connections.map((conn) => closeConnection(conn)),
  );
}