close method

Future<void> close()

Implementation

Future<void> close() async {
  loggerPool.info('Closing all pool connections');
  for (var c in _connections) {
    if (c.state == ConnectionState.bound ||
        c.state == ConnectionState.ready) {
      loggerPool.fine('Pool closing connection ${c.connectionInfo.id}');
      await c.close();
    }
  }
}