Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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_task
Method · 0.95
foo
Function · 0.50
sleep
Method · 0.45
cancel
Method · 0.45
Tested by
no test coverage detected