MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / worker

Function worker

python/openshell/sandbox_test.py:954–959  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

952 errors: list[BaseException] = []
953
954 def worker() -> None:
955 try:
956 barrier.wait()
957 results.append(r.current_access_token())
958 except BaseException as e:
959 errors.append(e)
960
961 threads = [threading.Thread(target=worker) for _ in range(8)]
962 for t in threads:

Callers

nothing calls this directly

Calls 2

waitMethod · 0.80
current_access_tokenMethod · 0.80

Tested by

no test coverage detected