Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ sqr
Function
sqr
Lib/test/_test_multiprocessing.py:2866–2871 ·
view source on GitHub ↗
(x, wait=0.0, event=None)
Source
from the content-addressed store, hash-verified
2864
#
2865
2866
def
sqr(x, wait=0.0, event=None):
2867
if
event is None:
2868
time.sleep(wait)
2869
else
:
2870
event.wait(wait)
2871
return
x*x
2872
2873
def
mul(x, y):
2874
return
x*y
Callers
4
test_apply
Method · 0.85
test_context
Method · 0.85
test_pool_worker_lifetime
Method · 0.85
test_pool_worker_lifetime_early_close
Method · 0.85
Calls
2
sleep
Method · 0.45
wait
Method · 0.45
Tested by
no test coverage detected