MCPcopy 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
18def sleep_and_print(t, msg):
19 time.sleep(t)
20 print(msg)
21 sys.stdout.flush()
22
23
24class ExecutorShutdownTest:

Callers

nothing calls this directly

Calls 2

sleepMethod · 0.45
flushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…