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

Function gen

test/parallel/test-stream-iter-share-async.js:27–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25
26async function testShareMultipleConsumers() {
27 async function* gen() {
28 yield [new TextEncoder().encode('chunk1')];
29 yield [new TextEncoder().encode('chunk2')];
30 yield [new TextEncoder().encode('chunk3')];
31 }
32
33 const shared = share(gen(), { highWaterMark: 16 });
34

Callers 4

testShareConsumerBreakFunction · 0.70

Calls 1

encodeMethod · 0.80

Tested by

no test coverage detected