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

Function read

test/parallel/test-whatwg-readablestream.mjs:7–12  ·  view source on GitHub ↗
(stream)

Source from the content-addressed store, hash-verified

5{
6 // Test tee() with close in the nextTick after enqueue
7 async function read(stream) {
8 const chunks = [];
9 for await (const chunk of stream)
10 chunks.push(chunk);
11 return Buffer.concat(chunks).toString();
12 }
13
14 const [r1, r2] = new ReadableStream({
15 start(controller) {

Callers 1

Calls 3

concatMethod · 0.80
pushMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…