MCPcopy Index your code
hub / github.com/python/cpython / new_task

Method new_task

Lib/test/test_asyncio/test_tasks.py:92–93  ·  view source on GitHub ↗
(self, loop, coro, name='TestTask', context=None, eager_start=None)

Source from the content-addressed store, hash-verified

90 all_tasks = None
91
92 def new_task(self, loop, coro, name='TestTask', context=None, eager_start=None):
93 return self.__class__.Task(coro, loop=loop, name=name, context=context, eager_start=eager_start)
94
95 def new_future(self, loop):
96 return self.__class__.Future(loop=loop)

Calls

no outgoing calls

Tested by

no test coverage detected