dispose method

Future<void> dispose()

Permanent shutdown (the host is going away).

Implementation

Future<void> dispose() async {
  _disposed = true;
  await stop();
  await _stateChanges.close();
}