qiskit/tools/events/pubsub.py
def dispatch(self, event, *args, **kwargs):
        """Emits an event if there are any subscribers.

        Args
            event (String): The event to be emitted
            args: Arguments linked with the event
            kwargs: Named arguments linked with the event
        """
        # No event, no subscribers.
        if event not in self._subscribers:
            return

        for subscriber in self._subscribers[event]:
            subscriber.callback(*args, **kwargs)
def dispatch(self, event, *args, **kwargs):
        # No event, no subscribers.
        if event not in self._subscribers:
            return

        for subscriber in self._subscribers[event]:
            subscriber.callback(*args, **kwargs)
def dispatch ( self , event , * args , * * kwargs ) : # No event, no subscribers. if event not in self . _subscribers : return for subscriber in self . _subscribers [ event ] : subscriber . callback ( * args , * * kwargs )
Emits an event if there are any subscribers.

        Args
            event (String): The event to be emitted
            args: Arguments linked with the event
            kwargs: Named arguments linked with the event
Emits an event if there are any subscribers .