Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ sqr
Function
sqr
Lib/test/_test_multiprocessing.py:2609–2614 ·
view source on GitHub ↗
(x, wait=0.0, event=None)
Source
from the content-addressed store, hash-verified
2607
#
2608
2609
def
sqr(x, wait=0.0, event=None):
2610
if
event is None:
2611
time.sleep(wait)
2612
else
:
2613
event.wait(wait)
2614
return
x*x
2615
2616
def
mul(x, y):
2617
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