MCPcopy Create free account
hub / github.com/codag-megalith/codag-visualizer / flush

Method flush

frontend/src/cache.ts:231–238  ·  view source on GitHub ↗

* Force immediate save of any pending changes. * Call this on extension deactivation to ensure cache is persisted.

()

Source from the content-addressed store, hash-verified

229 * Call this on extension deactivation to ensure cache is persisted.
230 */
231 async flush(): Promise<void> {
232 if (this.saveTimer) {
233 clearTimeout(this.saveTimer);
234 this.saveTimer = null;
235 }
236 await this.saveNow();
237 await this.writeGraphFile(this.lastMergedGraph);
238 }
239
240 // =========================================================================
241 // Multi-Batch Analysis State

Callers 1

deactivateFunction · 0.45

Calls 2

saveNowMethod · 0.95
writeGraphFileMethod · 0.95

Tested by

no test coverage detected