(self, event_data)
return asyncio.ensure_future(_timeout())
Creates and returns a running timer. Shields self._process_timeout to prevent cancellation when
        transitioning away from the current state (which cancels the timer) while processing timeout callbacks.
        Args:
            event_data (EventData): Data representing the currently processed event.

        Returns (cancellable): A running timer with a cancel method
Creates and returns a running timer. Shields self._process_timeout to prevent cancellation when
        transitioning away from the current state (which cancels the timer) while processing timeout callbacks.
        Args:
            event_data (EventData): Data representing the currently processed event.
Creates and returns a running timer . Shields self . _process_timeout to prevent cancellation when transitioning away from the current state ( which cancels the timer ) while processing timeout callbacks . Args : event_data ( EventData ) : Data representing the currently processed event .
def create_timer(self, event_data):
        """
        Creates and returns a running timer. Shields self._process_timeout to prevent cancellation when
        transitioning away from the current state (which cancels the timer) while processing timeout callbacks.
        Args:
            event_data (EventData): Data representing the currently processed event.

        Returns (cancellable): A running timer with a cancel method
        """
        async def _timeout():
            try:
                await asyncio.sleep(self.timeout)
                await asyncio.shield(self._process_timeout(event_data))
            except asyncio.CancelledError:
                pass

        return asyncio.ensure_future(_timeout())
def create_timer ( self , event_data ) : async def _timeout ( ) : try : await asyncio . sleep ( self . timeout ) await asyncio . shield ( self . _process_timeout ( event_data ) ) except asyncio . CancelledError : pass return asyncio . ensure_future ( _timeout ( ) )