MCPcopy Index your code
hub / github.com/codeaashu/claude-code / flush

Method flush

src/cli/transports/ccrClient.ts:831–834  ·  view source on GitHub ↗

* Flush pending client events (writeEvent queue). Call before close() * when the caller needs delivery confirmation — close() abandons the * queue. Resolves once the uploader drains or rejects; returns * regardless of whether individual POSTs succeeded (check server state * separately if

()

Source from the content-addressed store, hash-verified

829 * separately if that matters).
830 */
831 async flush(): Promise<void> {
832 await this.flushStreamEventBuffer()
833 return this.eventUploader.flush()
834 }
835
836 /**
837 * Read foreground agent internal events from

Callers 1

flushInternalEventsMethod · 0.45

Calls 1

Tested by

no test coverage detected