curio/task.py
async def add_task(self, task):
        '''
        Add an already existing task to the group.
        '''
        if task.taskgroup:
            raise RuntimeError('Task is already part of a task group')

        if self._joined:
            raise RuntimeError("TaskGroup already joined")

        task.taskgroup = self
        if not task.daemon:
            self._tasks.add(task)
        if task.terminated:
            await self._task_done(task)
        elif task.daemon:
            self._daemonic.add(task)
        else:
            self._running.add(task)

        Add an already existing task to the group.
        
Add an already existing task to the group.
Add an already existing task to the group .
async def add_task(self, task):
        if task.taskgroup:
            raise RuntimeError('Task is already part of a task group')
        if self._joined:
            raise RuntimeError("TaskGroup already joined")
        task.taskgroup = self
        if not task.daemon:
            self._tasks.add(task)
        if task.terminated:
            await self._task_done(task)
        elif task.daemon:
            self._daemonic.add(task)
        else:
            self._running.add(task)
async def add_task ( self , task ) : if task . taskgroup : raise RuntimeError ( 'Task is already part of a task group' ) if self . _joined : raise RuntimeError ( "TaskGroup already joined" ) task . taskgroup = self if not task . daemon : self . _tasks . add ( task ) if task . terminated : await self . _task_done ( task ) elif task . daemon : self . _daemonic . add ( task ) else : self . _running . add ( task )
Add an already existing task to the group.
Add an already existing task to the group .
'''
        Add an already existing task to the group.
        '''
self
task