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

Method write_blocking_call

tests/buffer/queue_test.py:212–223  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

210
211 # should be blocked
212 def write_blocking_call():
213 asyncio.run(
214 writer.write(
215 [
216 Experience(
217 tokens=torch.tensor([1, 2, 3]),
218 prompt_length=2,
219 info={"model_version": 4, "use_count": 0},
220 )
221 ]
222 )
223 )
224
225 thread = threading.Thread(target=write_blocking_call)
226 thread.start()

Callers

nothing calls this directly

Calls 3

ExperienceClass · 0.90
runMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected