MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / flush

Function flush

source code/utils/bufferedWriter.ts:39–49  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

37 }
38
39 function flush(): void {
40 if (pendingOverflow) {
41 writeFn(pendingOverflow.join(''))
42 pendingOverflow = null
43 }
44 if (buffer.length === 0) return
45 writeFn(buffer.join(''))
46 buffer = []
47 bufferBytes = 0
48 clearTimer()
49 }
50
51 function scheduleFlush(): void {
52 if (!flushTimer) {

Callers 1

disposeFunction · 0.70

Calls 2

writeFnFunction · 0.85
clearTimerFunction · 0.70

Tested by

no test coverage detected