(self, task)
Some Task objects are associated with the peer. This method
        gives an easy way to keep a strong reference to a Task that won't
        disappear until the peer does.
Some Task objects are associated with the peer. This method
        gives an easy way to keep a strong reference to a Task that won't
        disappear until the peer does.
Some Task objects are associated with the peer . This method gives an easy way to keep a strong reference to a Task that won t disappear until the peer does .
def add_task(self, task):
        """
        Some Task objects are associated with the peer. This method
        gives an easy way to keep a strong reference to a Task that won't
        disappear until the peer does.
        """
        try:
            self._tasks.add(asyncio.ensure_future(task))
        except AttributeError:
            # compatibility for very old versions of python 3
            self._tasks.add(getattr(asyncio, 'async')(task))
def add_task ( self , task ) : try : self . _tasks . add ( asyncio . ensure_future ( task ) ) except AttributeError : # compatibility for very old versions of python 3 self . _tasks . add ( getattr ( asyncio , 'async' ) ( task ) )