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

Function afterRead

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

Source from the content-addressed store, hash-verified

62 }
63
64 function afterRead(er, data) {
65 if (er) {
66 throw er;
67 }
68
69 if (data.length !== len)
70 throw new Error('wrong number of bytes returned');
71
72 reads++;
73 const benchEnded = Date.now() >= endAt;
74
75 if (benchEnded && (++waitConcurrent) === targetConcurrency) {
76 stop();
77 } else if (!benchEnded) {
78 read();
79 }
80 }
81
82 function zip() {
83 zlib.deflate(zipData, afterZip);

Callers

nothing calls this directly

Calls 3

nowMethod · 0.80
stopFunction · 0.70
readFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…