MCPcopy Create free account
hub / github.com/ScalingIntelligence/tokasaurus / queue_iterator

Function queue_iterator

tokasaurus/utils.py:479–484  ·  view source on GitHub ↗
(q: mp.Queue)

Source from the content-addressed store, hash-verified

477
478
479def queue_iterator(q: mp.Queue):
480 while True:
481 try:
482 yield q.get_nowait()
483 except queue.Empty:
484 break
485
486
487def block_on_queues(queues: list[mp.Queue]):

Callers 2

handle_new_model_outputsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected