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

Method gather_tasks

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

Source from the content-addressed store, hash-verified

1261 return tasks
1262
1263 async def gather_tasks(self, n, coro):
1264 tasks = self.make_tasks(n, coro)
1265 res = await asyncio.gather(*tasks)
1266 return res, tasks
1267
1268 async def test_barrier(self):
1269 barrier = asyncio.Barrier(self.N)

Calls 2

make_tasksMethod · 0.95
gatherMethod · 0.45

Tested by

no test coverage detected