MCPcopy Create free account
hub / github.com/anthropics/anthropic-sdk-python / worker

Method worker

tests/lib/test_credentials.py:1795–1799  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1793 lock = _threading.Lock()
1794
1795 def worker() -> None:
1796 barrier.wait()
1797 tok = cache.get_token()
1798 with lock:
1799 results.append(tok)
1800
1801 threads = [_threading.Thread(target=worker) for _ in range(8)]
1802 for t in threads:

Calls 3

get_tokenMethod · 0.80
waitMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected