MCPcopy 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
105func (rb *RingWriter[T, F]) Dispose() {
106 if rb.disposeFlag.Add(-2) == -2 {
107 rb.Value.Ready()
108 }
109}
110
111func (rb *RingWriter[T, F]) Step() (normal bool) {
112 if !rb.disposeFlag.CompareAndSwap(0, 1) {

Callers

nothing calls this directly

Calls 2

ReadyMethod · 0.65
AddMethod · 0.45

Tested by

no test coverage detected