MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / dispose

Function dispose

cli/src/utils/message-updater.ts:151–160  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

149 }
150
151 const dispose = () => {
152 if (isDisposed) return
153 // Flush any pending updates before disposing to prevent data loss
154 flush()
155 isDisposed = true
156 if (intervalId !== null) {
157 clearInterval(intervalId)
158 intervalId = null
159 }
160 }
161
162 // Start the periodic flush interval
163 intervalId = setInterval(flush, flushIntervalMs)

Callers 2

markCompleteFunction · 0.85
setErrorFunction · 0.85

Calls 1

flushFunction · 0.70

Tested by

no test coverage detected