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

Function pull

benchmark/webstreams/readable-read-buffered.js:25–35  ·  view source on GitHub ↗
(controller)

Source from the content-addressed store, hash-verified

23 }
24 },
25 pull(controller) {
26 // Refill buffer when pulled
27 const toEnqueue = Math.min(bufferSize, n - enqueued);
28 for (let i = 0; i < toEnqueue; i++) {
29 controller.enqueue('a');
30 enqueued++;
31 }
32 if (enqueued >= n) {
33 controller.close();
34 }
35 },
36 }, {
37 // Use buffer size as high water mark to allow pre-buffering
38 highWaterMark: bufferSize,

Callers

nothing calls this directly

Calls 3

closeMethod · 0.65
minMethod · 0.45
enqueueMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…