MCPcopy Create free account
hub / github.com/agentscope-ai/Trinity-RFT / thread_read

Method thread_read

tests/buffer/queue_test.py:80–85  ·  view source on GitHub ↗
(reader, result_queue)

Source from the content-addressed store, hash-verified

78 self.assertEqual(len(exps), self.put_batch_size * 2)
79
80 def thread_read(reader, result_queue):
81 try:
82 batch = asyncio.run(reader.read())
83 result_queue.put(batch)
84 except StopAsyncIteration as e:
85 result_queue.put(e)
86
87 result_queue = queue.Queue()
88 t = threading.Thread(target=thread_read, args=(reader, result_queue))

Callers

nothing calls this directly

Calls 3

runMethod · 0.45
readMethod · 0.45
putMethod · 0.45

Tested by

no test coverage detected