Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
inner
Function · 0.50
set_result
Method · 0.45
sleep
Method · 0.45
create_task
Method · 0.45
wait_for
Method · 0.45
Tested by
no test coverage detected