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

Function createReadable

test/parallel/test-stream-readable-async-iterators.js:732–740  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

730// AsyncIterator non-destroying iterator
731{
732 function createReadable() {
733 return Readable.from((async function* () {
734 await Promise.resolve();
735 yield 5;
736 await Promise.resolve();
737 yield 7;
738 await Promise.resolve();
739 })());
740 }
741
742 // Check explicit destroying on return
743 (async function() {

Callers 2

testConfluenceFunction · 0.70

Calls 2

fromMethod · 0.45
resolveMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…