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

Function flow

test/parallel/test-stream2-readable-wrap.js:60–71  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

58 let oldEnded = false;
59 const expected = [];
60 function flow() {
61 flowing = true;
62 while (flowing && chunks-- > 0) {
63 const item = produce();
64 expected.push(item);
65 old.emit('data', item);
66 }
67 if (chunks <= 0) {
68 oldEnded = true;
69 old.emit('end');
70 }
71 }
72
73 const w = new Writable({ highWaterMark: highWaterMark * 2,
74 objectMode });

Callers 1

runTestFunction · 0.70

Calls 3

produceFunction · 0.85
pushMethod · 0.45
emitMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…