MCPcopy Index your code
hub / github.com/Tong89/smartNode / worker

Method worker

tests/test_concurrency.py:277–284  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

275 barrier = threading.Barrier(6)
276
277 def worker():
278 barrier.wait()
279 for _ in range(5):
280 try:
281 r = isolated_engine.submit_request(dict(bad_payload))
282 results.append(r)
283 except Exception as exc:
284 errors.append(exc)
285
286 threads = [threading.Thread(target=worker) for _ in range(6)]
287 for t in threads:

Callers

nothing calls this directly

Calls 2

submit_requestMethod · 0.80
appendMethod · 0.80

Tested by

no test coverage detected