close method

Future close()

Implementation

Future close() async {
  await _executor.close();
  while (_connections.isNotEmpty) {
    await Future.wait(List.of(_connections).map(_close));
  }
  await _events.close();
}