MCPcopy Create free account
hub / github.com/nodejs/node / source2

Function source2

test/parallel/test-stream-iter-consumers-merge.js:122–128  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

120 }
121
122 async function* source2() {
123 try {
124 while (true) yield [new TextEncoder().encode('b')];
125 } finally {
126 source2Return = true;
127 }
128 }
129 // eslint-disable-next-line no-unused-vars
130 for await (const _ of merge(source1(), source2())) {
131 break; // Break after first batch

Callers 1

testMergeConsumerBreakFunction · 0.85

Calls 1

encodeMethod · 0.80

Tested by

no test coverage detected