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

Method release

trinity/buffer/storage/queue.py:358–365  ·  view source on GitHub ↗

Release the queue.

(self)

Source from the content-addressed store, hash-verified

356 return self.ref_count
357
358 async def release(self) -> int:
359 """Release the queue."""
360 self.ref_count -= 1
361 if self.ref_count <= 0:
362 await self.queue.close()
363 if self.writer is not None:
364 await self.writer.release()
365 return self.ref_count
366
367 def length(self) -> int:
368 """The length of the queue."""

Callers

nothing calls this directly

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected