Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Monibuca/engine
/ Dispose
Method
Dispose
util/ring-writer.go:105–109 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
103
}
104
105
func
(rb *RingWriter[T, F]) Dispose() {
106
if
rb.disposeFlag.Add(-2) == -2 {
107
rb.Value.Ready()
108
}
109
}
110
111
func
(rb *RingWriter[T, F]) Step() (normal bool) {
112
if
!rb.disposeFlag.CompareAndSwap(0, 1) {
Callers
nothing calls this directly
Calls
2
Ready
Method · 0.65
Add
Method · 0.45
Tested by
no test coverage detected