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

Method release

trinity/buffer/storage/file.py:77–81  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

75 return self.ref_count
76
77 def release(self) -> int:
78 self.ref_count -= 1
79 if self.ref_count <= 0:
80 self.file.close()
81 return self.ref_count

Callers 3

closeMethod · 0.45
test_file_writerMethod · 0.45
tearDownMethod · 0.45

Calls 1

closeMethod · 0.45

Tested by 2

test_file_writerMethod · 0.36
tearDownMethod · 0.36