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

Function start

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

Source from the content-addressed store, hash-verified

16
17 const rs = new ReadableStream({
18 start(controller) {
19 // Pre-fill the buffer
20 for (let i = 0; i < bufferSize; i++) {
21 controller.enqueue('a');
22 enqueued++;
23 }
24 },
25 pull(controller) {
26 // Refill buffer when pulled
27 const toEnqueue = Math.min(bufferSize, n - enqueued);

Callers

nothing calls this directly

Calls 1

enqueueMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…