unadvertise<T> method

Future<void> unadvertise <T>(
  1. String topic
)

Implementation

Future<void> unadvertise<T>(String topic) async {
  final pub = _publishers[topic];
  if (pub != null) {
    log.superdebug.info('Unadvertising from topic $topic');
    _publishers.remove(topic);
    await pub.shutdown();
  }
  return unregisterPublisher(topic);
}