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

Function gen

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

Source from the content-addressed store, hash-verified

42
43async function testPullWithAbortSignal() {
44 async function* gen() {
45 yield [new Uint8Array([1])];
46 }
47
48 const result = pull(gen(), { signal: AbortSignal.abort() });
49 await assert.rejects(

Callers 2

testPullWithAbortSignalFunction · 0.70
testPullWithSyncSourceFunction · 0.70

Calls 1

encodeMethod · 0.80

Tested by

no test coverage detected