MCPcopy Index your code
hub / github.com/simstudioai/sim / flush

Method flush

apps/sim/lib/copilot/request/session/writer.ts:103–111  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

101 }
102
103 async flush(): Promise<void> {
104 this.flushPendingPersistence()
105 await this.persistenceTail
106 if (this.lastPersistenceError) {
107 const error = this.lastPersistenceError
108 this.lastPersistenceError = null
109 throw error
110 }
111 }
112
113 async close(): Promise<void> {
114 this.stopKeepalive()

Callers 9

closeMethod · 0.95
handleAbortedFunction · 0.45
handleErrorFunction · 0.45
handleSuccessFunction · 0.45
writer.test.tsFile · 0.45
pptxgenjs.cjsFile · 0.45
UBFunction · 0.45
pdf-lib.cjsFile · 0.45

Calls 1

Tested by

no test coverage detected