MCPcopy 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
2609def 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
2616def mul(x, y):
2617 return x*y

Callers 4

test_applyMethod · 0.85
test_contextMethod · 0.85

Calls 2

sleepMethod · 0.45
waitMethod · 0.45

Tested by

no test coverage detected