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

Method worker

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

Source from the content-addressed store, hash-verified

1525 lock = _threading.Lock()
1526
1527 def worker() -> None:
1528 barrier.wait()
1529 tok = cache.get_token()
1530 with lock:
1531 results.append(tok)
1532
1533 threads = [_threading.Thread(target=worker) for _ in range(8)]
1534 for t in threads:

Callers 4

mainFunction · 0.45
mainFunction · 0.45

Calls 1

get_tokenMethod · 0.80

Tested by

no test coverage detected