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