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

Method foo

Lib/test/test_asyncio/test_waitfor.py:77–79  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

75 foo_started = False
76
77 async def foo():
78 nonlocal foo_started
79 foo_started = True
80
81 with self.assertRaises(asyncio.TimeoutError):
82 await asyncio.wait_for(foo(), 0)

Callers

nothing calls this directly

Calls 5

innerFunction · 0.50
set_resultMethod · 0.45
sleepMethod · 0.45
create_taskMethod · 0.45
wait_forMethod · 0.45

Tested by

no test coverage detected