MCPcopy Index your code
hub / github.com/python/cpython / repeat

Function repeat

Lib/test/test_free_threading/test_races.py:23–26  ·  view source on GitHub ↗
(func)

Source from the content-addressed store, hash-verified

21 barrier = threading.Barrier(2)
22
23 def repeat(func):
24 barrier.wait()
25 for _i in range(n):
26 func()
27
28 threads = [
29 threading.Thread(target=functools.partial(repeat, func1)),

Callers 15

run_testFunction · 0.50
setUpMethod · 0.50
test_compressMethod · 0.50
test_repeatMethod · 0.50
test_tee_del_backwardMethod · 0.50
test_StopIterationMethod · 0.50
test_repeatMethod · 0.50
test_tee_recipeMethod · 0.50
test_repeatMethod · 0.50
test_compressMethod · 0.50

Calls 2

funcFunction · 0.50
waitMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…