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

Function createReadableStream

lib/internal/webstreams/readablestream.js:1342–1348  ·  view source on GitHub ↗
(start, pull, cancel, highWaterMark = 1, size = defaultSizeAlgorithm)

Source from the content-addressed store, hash-verified

1340ObjectSetPrototypeOf(InternalReadableStream, ReadableStream);
1341
1342function createReadableStream(start, pull, cancel, highWaterMark = 1, size = defaultSizeAlgorithm) {
1343 const stream = new InternalReadableStream(start, pull, cancel, highWaterMark, size);
1344
1345 // For spec compliance the InternalReadableStream must be a ReadableStream
1346 stream.constructor = ReadableStream;
1347 return stream;
1348}
1349
1350function InternalReadableByteStream(start, pull, cancel) {
1351 ObjectSetPrototypeOf(this, ReadableStream.prototype);

Callers 3

readableStreamDefaultTeeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…