(self, _model, _trigger, *args, **kwargs)
return self._check_event_result(res, _model, _trigger)
Processes events recursively and forwards arguments if suitable events are found.
        This function is usually bound to models with model and trigger arguments already
        resolved as a partial. Execution will halt when a nested transition has been executed
        successfully.
        Args:
            _model (object): targeted model
            _trigger (str): event name
            *args: positional parameters passed to the event and its callbacks
            **kwargs: keyword arguments passed to the event and its callbacks
        Returns:
            bool: whether a transition has been executed successfully
        Raises:
            MachineError: When no suitable transition could be found and ignore_invalid_trigger
                          is not True. Note that a transition which is not executed due to conditions
                          is still considered valid.
Processes events recursively and forwards arguments if suitable events are found.
        This function is usually bound to models with model and trigger arguments already
        resolved as a partial. Execution will halt when a nested transition has been executed
        successfully.
        Args:
            _model (object): targeted model
            _trigger (str): event name
            *args: positional parameters passed to the event and its callbacks
            **kwargs: keyword arguments passed to the event and its callbacks
        Returns:
            bool: whether a transition has been executed successfully
        Raises:
            MachineError: When no suitable transition could be found and ignore_invalid_trigger
                          is not True. Note that a transition which is not executed due to conditions
                          is still considered valid.
Processes events recursively and forwards arguments if suitable events are found . This function is usually bound to models with model and trigger arguments already resolved as a partial . Execution will halt when a nested transition has been executed successfully . Args : _model ( object ) : targeted model _trigger ( str ) : event name * args : positional parameters passed to the event and its callbacks ** kwargs : keyword arguments passed to the event and its callbacks Returns : bool : whether a transition has been executed successfully Raises : MachineError : When no suitable transition could be found and ignore_invalid_trigger is not True . Note that a transition which is not executed due to conditions is still considered valid .
async def trigger_event(self, _model, _trigger, *args, **kwargs):
        """ Processes events recursively and forwards arguments if suitable events are found.
        This function is usually bound to models with model and trigger arguments already
        resolved as a partial. Execution will halt when a nested transition has been executed
        successfully.
        Args:
            _model (object): targeted model
            _trigger (str): event name
            *args: positional parameters passed to the event and its callbacks
            **kwargs: keyword arguments passed to the event and its callbacks
        Returns:
            bool: whether a transition has been executed successfully
        Raises:
            MachineError: When no suitable transition could be found and ignore_invalid_trigger
                          is not True. Note that a transition which is not executed due to conditions
                          is still considered valid.
        """
        with self():
            res = await self._trigger_event(_model, _trigger, None, *args, **kwargs)
        return self._check_event_result(res, _model, _trigger)
async def trigger_event ( self , _model , _trigger , * args , * * kwargs ) : with self ( ) : res = await self . _trigger_event ( _model , _trigger , None , * args , * * kwargs ) return self . _check_event_result ( res , _model , _trigger )