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

Function pull

benchmark/streams/iter-throughput-identity.js:68–77  ·  view source on GitHub ↗
(controller)

Source from the content-addressed store, hash-verified

66 let remaining = datasize;
67 const rs = new ReadableStream({
68 pull(controller) {
69 if (remaining <= 0) {
70 controller.close();
71 return;
72 }
73 const size = Math.min(remaining, chunk.length);
74 remaining -= size;
75 controller.enqueue(
76 size === chunk.length ? chunk : chunk.subarray(0, size));
77 },
78 });
79 const ws = new WritableStream({
80 write() {},

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…