unsubscribe method
- 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);
}