unsubscribe method

Future<void> unsubscribe (
  1. String topic
)

Implementation

Future<void> unsubscribe(String topic) async {
  final sub = _subscribers[topic];
  if (sub != null) {
    log.superdebug.info('Unsubscribing from topic $topic');
    _subscribers.remove(topic);
    await sub.shutdown();
  }
  return unregisterSubscriber(topic);
}