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

Method make_tasks

Lib/test/test_asyncio/test_locks.py:1259–1261  ·  view source on GitHub ↗
(self, n, coro)

Source from the content-addressed store, hash-verified

1257 self.N = 5
1258
1259 def make_tasks(self, n, coro):
1260 tasks = [asyncio.create_task(coro()) for _ in range(n)]
1261 return tasks
1262
1263 async def gather_tasks(self, n, coro):
1264 tasks = self.make_tasks(n, coro)

Calls 1

create_taskMethod · 0.45

Tested by

no test coverage detected