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

Method close

src/packFileSerializer.ts:2441–2452  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2439 }
2440 // Close the stream
2441 async close(): Promise<void> {
2442 await this.flush();
2443 return new Promise((resolve, reject) => {
2444 this.writeStream.end((error: Error | undefined) => {
2445 if (error) {
2446 reject(error);
2447 } else {
2448 resolve();
2449 }
2450 });
2451 });
2452 }
2453}
2454// Buffer accumulator class for batching writes and reducing Promise overhead (kept for compatibility)
2455class BufferAccumulator {

Callers 15

readPackFunction · 0.80
createWindowFunction · 0.80
downloadFileFunction · 0.80
setupSavesWatcherFunction · 0.80
mergeModsFunction · 0.80
writeCopyPackFunction · 0.80
writePackStreamFunction · 0.80
writePackAppendFastFunction · 0.80
writePackSortedFunction · 0.80
writePackLegacyFunction · 0.80
writeStartGamePackFunction · 0.80

Calls 1

flushMethod · 0.95

Tested by

no test coverage detected