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

Method runner

Lib/test/test_asyncio/test_tasks.py:329–332  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

327 self.assertRegex(tb, r'foo\(\) running')
328
329 async def runner():
330 nonlocal T
331 T = asyncio.ensure_future(foo(), loop=self.loop)
332 await T
333
334 self.loop.run_until_complete(runner())
335

Callers

nothing calls this directly

Calls 4

new_taskMethod · 0.95
fooFunction · 0.50
sleepMethod · 0.45
cancelMethod · 0.45

Tested by

no test coverage detected