Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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_test
Function · 0.50
setUp
Method · 0.50
test_chain_from_iterable
Method · 0.50
test_compress
Method · 0.50
test_repeat
Method · 0.50
test_repeat_with_negative_times
Method · 0.50
test_tee_del_backward
Method · 0.50
test_StopIteration
Method · 0.50
test_repeat
Method · 0.50
test_tee_recipe
Method · 0.50
test_repeat
Method · 0.50
test_compress
Method · 0.50
Calls
2
func
Function · 0.50
wait
Method · 0.45
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…