(self, topicName: str = None, listenerFilter: ListenerFilter = None,
                 topicFilter: Union[str, TopicFilter] = None)
return unsubdListeners
Unsubscribe all listeners of a topic.

        :param topicName: if none given, unsub from all topics.
        :param listenerFilter: filter function to apply to listeners, unsubscribe only the listeners
            that satisfy listenerFilter(listener: Listener) == True
        :param topicFilter: topic name, or a filter function to apply to topics; in latter case, only
            topics that satisfy topicFilter(topic name) == True will be affected
        :returns: list of all listeners (instances of pub.Listener) that were unsubscribed from the topic tree

        Note: this method will generate one 'unsubcribe' notification message
        (see pub.setNotificationFlags()) for each listener unsubscribed.
Unsubscribe all listeners of a topic.
Unsubscribe all listeners of a topic .
def unsubAll(self, topicName: str = None, listenerFilter: ListenerFilter = None,
                 topicFilter: Union[str, TopicFilter] = None) -> List[Listener]:
        """
        Unsubscribe all listeners of a topic.

        :param topicName: if none given, unsub from all topics.
        :param listenerFilter: filter function to apply to listeners, unsubscribe only the listeners
            that satisfy listenerFilter(listener: Listener) == True
        :param topicFilter: topic name, or a filter function to apply to topics; in latter case, only
            topics that satisfy topicFilter(topic name) == True will be affected
        :returns: list of all listeners (instances of pub.Listener) that were unsubscribed from the topic tree

        Note: this method will generate one 'unsubcribe' notification message
        (see pub.setNotificationFlags()) for each listener unsubscribed.
        """
        unsubdListeners = []

        if topicName is None:
            # unsubscribe all listeners from all topics
            topicsMap = self.__topicMgr._topicsMap
            for topicName, topicObj in topicsMap.items():
                if topicFilter is None or topicFilter(topicName):
                    tmp = topicObj.unsubscribeAllListeners(listenerFilter)
                    unsubdListeners.extend(tmp)

        else:
            topicObj = self.__topicMgr.getTopic(topicName)
            unsubdListeners = topicObj.unsubscribeAllListeners(listenerFilter)

        return unsubdListeners
def unsubAll ( self , topicName : str = None , listenerFilter : ListenerFilter = None , topicFilter : Union [ str , TopicFilter ] = None ) -> List [ Listener ] : unsubdListeners = [ ] if topicName is None : # unsubscribe all listeners from all topics topicsMap = self . __topicMgr . _topicsMap for topicName , topicObj in topicsMap . items ( ) : if topicFilter is None or topicFilter ( topicName ) : tmp = topicObj . unsubscribeAllListeners ( listenerFilter ) unsubdListeners . extend ( tmp ) else : topicObj = self . __topicMgr . getTopic ( topicName ) unsubdListeners = topicObj . unsubscribeAllListeners ( listenerFilter ) return unsubdListeners