(self, _model, *args, **kwargs)
return await self.machine.process_context(func, _model)
Serially execute all transitions that match the current state,
        halting as soon as one successfully completes. Note that `AsyncEvent` triggers must be awaited.
        Args:
            args and kwargs: Optional positional or named arguments that will
                be passed onto the EventData object, enabling arbitrary state
                information to be passed on to downstream triggered functions.
        Returns: boolean indicating whether or not a transition was
            successfully executed (True if successful, False if not).
Serially execute all transitions that match the current state,
        halting as soon as one successfully completes. Note that `AsyncEvent` triggers must be awaited.
        Args:
            args and kwargs: Optional positional or named arguments that will
                be passed onto the EventData object, enabling arbitrary state
                information to be passed on to downstream triggered functions.
        Returns: boolean indicating whether or not a transition was
            successfully executed (True if successful, False if not).
Serially execute all transitions that match the current state halting as soon as one successfully completes . Note that AsyncEvent triggers must be awaited . Args : args and kwargs : Optional positional or named arguments that will be passed onto the EventData object enabling arbitrary state information to be passed on to downstream triggered functions . Returns : boolean indicating whether or not a transition was successfully executed ( True if successful False if not ) .
async def trigger(self, _model, *args, **kwargs):
        """ Serially execute all transitions that match the current state,
        halting as soon as one successfully completes. Note that `AsyncEvent` triggers must be awaited.
        Args:
            args and kwargs: Optional positional or named arguments that will
                be passed onto the EventData object, enabling arbitrary state
                information to be passed on to downstream triggered functions.
        Returns: boolean indicating whether or not a transition was
            successfully executed (True if successful, False if not).
        """
        func = partial(self._trigger, _model, *args, **kwargs)
        return await self.machine.process_context(func, _model)
async def trigger ( self , _model , * args , * * kwargs ) : func = partial ( self . _trigger , _model , * args , * * kwargs ) return await self . machine . process_context ( func , _model )