closeAllTransports method

Future<void> closeAllTransports()

Implementation

Future<void> closeAllTransports() async {
  Iterable<String> keys = transports.keys.toList();
  try {
    await Future.wait(keys.map((url) => closeTransport(url)));
  } catch (e) {
    print(e);
  }
}