close method

Future close()

Implementation

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