(
        self,
        api_name: str,
        name: str,
        listener: Callable,
        listener_name: str,
        options: dict = None,
        on_error: OnError = OnError.SHUTDOWN,
    )
Listen for a single event

        Wraps `listen_for_events()`
Listen for a single event
Listen for a single event
def listen_for_event(
        self,
        api_name: str,
        name: str,
        listener: Callable,
        listener_name: str,
        options: dict = None,
        on_error: OnError = OnError.SHUTDOWN,
    ):
        """Listen for a single event

        Wraps `listen_for_events()`
        """
        self.listen_for_events(
            [(api_name, name)], listener, listener_name=listener_name, options=options or {}
        )
def listen_for_event ( self , api_name : str , name : str , listener : Callable , listener_name : str , options : dict = None , on_error : OnError = OnError . SHUTDOWN , ) : self . listen_for_events ( [ ( api_name , name ) ] , listener , listener_name = listener_name , options = options or { } )