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

Method flush

src/packFileSerializer.ts:2433–2439  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2431 }
2432 // Force flush all queued buffers
2433 async flush(): Promise<void> {
2434 const promise = new Promise<void>((resolve, reject) => {
2435 this.writePromises.push({ resolve, reject });
2436 });
2437 this.processQueue();
2438 return promise;
2439 }
2440 // Close the stream
2441 async close(): Promise<void> {
2442 await this.flush();

Callers 4

flushIfNeededMethod · 0.95
closeMethod · 0.95
writePackStreamFunction · 0.45
writeFieldBufferedStreamFunction · 0.45

Calls 1

processQueueMethod · 0.95

Tested by

no test coverage detected