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

Function source

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

Source from the content-addressed store, hash-verified

137 const reason = new Error('share aborted');
138 const enc = new TextEncoder();
139 async function* source() {
140 yield [enc.encode('a')];
141 yield [enc.encode('b')];
142 }
143 const shared = share(source(), {
144 highWaterMark: 1,
145 backpressure: 'block',

Callers 2

testShareAbortSignalFunction · 0.70

Calls 1

encodeMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…