MCPcopy Index your code
hub / github.com/nodejs/node / afterZip

Function afterZip

benchmark/fs/readfile-partitioned.js:86–98  ·  view source on GitHub ↗
(er, data)

Source from the content-addressed store, hash-verified

84 }
85
86 function afterZip(er, data) {
87 if (er)
88 throw er;
89
90 zips++;
91 const benchEnded = Date.now() >= endAt;
92
93 if (benchEnded && (++waitConcurrent) === targetConcurrency) {
94 stop();
95 } else if (!benchEnded) {
96 zip();
97 }
98 }
99
100 // Start reads
101 for (let i = 0; i < concurrent; i++) read();

Callers

nothing calls this directly

Calls 3

zipFunction · 0.85
nowMethod · 0.80
stopFunction · 0.70

Tested by

no test coverage detected