MCPcopy Create free account
hub / github.com/freecodexyz/free-code / scheduleFlush

Function scheduleFlush

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

Source from the content-addressed store, hash-verified

47 }
48
49 function scheduleFlush(): void {
50 if (!flushTimer) {
51 flushTimer = setTimeout(flush, flushIntervalMs)
52 }
53 }
54
55 // Detach the buffer synchronously so the caller never waits on writeFn.
56 // writeFn may block (e.g. errorLogSink.ts appendFileSync) — if overflow fires

Callers 1

writeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected