MCPcopy 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
2866def 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
2873def mul(x, y):
2874 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