close method

Future<void> close()

Closes all connections in this pool and frees resources

Implementation

Future<void> close() async {
  for (final conn in _allConnections) {
    await conn.close();
  }
  _idleConnections.clear();
  _activeConnections.clear();
}