Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
close
Method · 0.45
test_file_writer
Method · 0.45
tearDown
Method · 0.45
Calls
1
close
Method · 0.45
Tested by
2
test_file_writer
Method · 0.36
tearDown
Method · 0.36