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

Method worker

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

Source from the content-addressed store, hash-verified

1619 lock = _threading.Lock()
1620
1621 def worker() -> None:
1622 barrier.wait()
1623 tok = cache.get_token()
1624 with lock:
1625 results.append(tok)
1626
1627 threads = [_threading.Thread(target=worker) for _ in range(8)]
1628 for t in threads:

Callers 4

mainFunction · 0.45
mainFunction · 0.45

Calls 1

get_tokenMethod · 0.80

Tested by

no test coverage detected