Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/pallets/werkzeug
/ value_setter
Function
value_setter
tests/test_local.py:34–38 ·
view source on GitHub ↗
(idx)
Source
from the content-addressed store, hash-verified
32
values = []
33
34
def
value_setter(idx):
35
time.sleep(0.01 * idx)
36
ns.foo = idx
37
time.sleep(0.02)
38
values.append(ns.foo)
39
40
threads = [Thread(target=value_setter, args=(x,))
for
x in [1, 2, 3]]
41
for
thread in threads:
Callers
1
main
Function · 0.85
Calls
1
append
Method · 0.80
Tested by
no test coverage detected