Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ sleep_n_crash
Method
sleep_n_crash
Lib/test/test_asyncgen.py:1458–1460 ·
view source on GitHub ↗
(delay)
Source
from the content-addressed store, hash-verified
1456
DONE = 0
1457
1458
async
def
sleep_n_crash(delay):
1459
await asyncio.sleep(delay)
1460
1 / 0
1461
1462
async
def
gen():
1463
nonlocal DONE
Callers
nothing calls this directly
Calls
3
sleep
Method · 0.45
call_later
Method · 0.45
cancel
Method · 0.45
Tested by
no test coverage detected