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

Function read

lib/internal/streams/iter/classic.js:284–293  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

282 __proto__: null,
283 highWaterMark,
284 read() {
285 if (backpressure) {
286 const { resolve } = backpressure;
287 backpressure = null;
288 resolve();
289 } else if (!pumping && !done) {
290 pumping = true;
291 pump();
292 }
293 },
294 destroy(err, cb) {
295 done = true;
296 // Wake up the pump if it's waiting on backpressure so it

Callers

nothing calls this directly

Calls 4

resolveFunction · 0.70
pumpFunction · 0.70
nextMethod · 0.65
pushMethod · 0.45

Tested by

no test coverage detected