dispose method

Future<void> dispose()

Implementation

Future<void> dispose() async {
  for (final t in _topics.values) {
    await t.dispose();
  }
  _topics.clear();
}