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

Method runner

Lib/test/test_asyncio/test_taskgroups.py:138–145  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

136 NUM += 1
137
138 async def runner():
139 nonlocal NUM, t2
140
141 async with taskgroups.TaskGroup() as g:
142 g.create_task(foo1())
143 t2 = g.create_task(foo2())
144
145 NUM += 10
146
147 with self.assertRaises(ExceptionGroup) as cm:
148 await asyncio.create_task(runner())

Callers

nothing calls this directly

Calls 4

fooFunction · 0.50
nestedFunction · 0.50
create_taskMethod · 0.45
sleepMethod · 0.45

Tested by

no test coverage detected