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

Function infiniteSource

test/parallel/test-stream-iter-pull-async.js:205–210  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

203 },
204 };
205 async function* infiniteSource() {
206 let i = 0;
207 while (true) {
208 yield [new TextEncoder().encode(`chunk${i++}`)];
209 }
210 }
211 // Consumer breaks after first chunk
212 // eslint-disable-next-line no-unused-vars
213 for await (const _ of pull(infiniteSource(), trackingTransform)) {

Callers 1

Calls 1

encodeMethod · 0.80

Tested by

no test coverage detected