MCPcopy Create free account
hub / github.com/diillson/chatcli / Flush

Method Flush

pkg/coder/engine/engine.go:293–300  ·  view source on GitHub ↗

Flush emits any remaining buffered content as a final line.

()

Source from the content-addressed store, hash-verified

291
292// Flush emits any remaining buffered content as a final line.
293func (sw *StreamWriter) Flush() {
294 sw.mu.Lock()
295 defer sw.mu.Unlock()
296 if len(sw.buf) > 0 && sw.onOutput != nil {
297 sw.onOutput(string(sw.buf))
298 sw.buf = sw.buf[:0]
299 }
300}

Callers 15

TestStreamWriterFunction · 0.95
ExecuteWithStreamMethod · 0.95
ExecuteWithStreamMethod · 0.95
ExecuteWithStreamMethod · 0.95
ExecuteWithStreamMethod · 0.95
smartCommitScriptFunction · 0.95
reviewChangesScriptFunction · 0.95
diffReviewScriptFunction · 0.95
scanLintScriptFunction · 0.95
auditDepsScriptFunction · 0.95
updateDepsScriptFunction · 0.95
whyDepScriptFunction · 0.95

Calls 2

LockMethod · 0.80
UnlockMethod · 0.80