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

Function gen

test/parallel/test-stream-iter-sharedarraybuffer.js:129–133  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

127
128function testPullSyncSABChunks() {
129 function* gen() {
130 const sab = new SharedArrayBuffer(2);
131 new Uint8Array(sab).set([1, 2]);
132 yield [new Uint8Array(sab)];
133 }
134 const batches = [];
135 for (const batch of pullSync(gen())) {
136 batches.push(batch);

Callers 2

testPullSyncSABChunksFunction · 0.70
testPullAsyncSABChunksFunction · 0.70

Calls 1

setMethod · 0.45

Tested by

no test coverage detected