Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/python/cpython
/ sleep_and_print
Function
sleep_and_print
Lib/test/test_concurrent_futures/test_shutdown.py:18–21 ·
view source on GitHub ↗
(t, msg)
Source
from the content-addressed store, hash-verified
16
17
18
def
sleep_and_print(t, msg):
19
time.sleep(t)
20
print(msg)
21
sys.stdout.flush()
22
23
24
class
ExecutorShutdownTest:
Callers
nothing calls this directly
Calls
2
sleep
Method · 0.45
flush
Method · 0.45
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…