MCPcopy Create free account
hub / github.com/Shazbot/WH3-Mod-Manager / flushIfNeeded

Method flushIfNeeded

src/packFileSerializer.ts:2427–2431  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2425 }
2426 // Flush queue when batch size is reached
2427 async flushIfNeeded(): Promise<void> {
2428 if (this.queuedSize >= this.batchSize) {
2429 await this.flush();
2430 }
2431 }
2432 // Force flush all queued buffers
2433 async flush(): Promise<void> {
2434 const promise = new Promise<void>((resolve, reject) => {

Callers 2

writePackStreamFunction · 0.45
writeFieldBufferedStreamFunction · 0.45

Calls 1

flushMethod · 0.95

Tested by

no test coverage detected