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

Function fromAsync

test/parallel/test-stream-drop-take.js:11–11  ·  view source on GitHub ↗
(...args)

Source from the content-addressed store, hash-verified

9const { from } = Readable;
10
11const fromAsync = (...args) => from(...args).map(async (x) => x);
12
13const naturals = () => from(async function*() {
14 let i = 1;

Callers 1

Calls 2

mapMethod · 0.65
fromFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…