dispose method

Future<void> dispose()

Disposes all transports.

Should be called on application shutdown.

Implementation

Future<void> dispose() async {
  for (final transport in _transports) {
    await transport.dispose();
  }
}