stream.Readable.toWeb(streamReadable[, options])
稳定性: 1 - 实验性的
¥Stability: 1 - Experimental
-
streamReadable<stream.Readable> -
options<Object>-
strategy<Object>-
highWaterMark<number> 在从给定的stream.Readable读取数据时应用背压之前的最大内部队列大小(创建的ReadableStream)。如果未提供值,将从给定的stream.Readable中获取。¥
highWaterMark<number> The maximum internal queue size (of the createdReadableStream) before backpressure is applied in reading from the givenstream.Readable. If no value is provided, it will be taken from the givenstream.Readable. -
size<Function> 给定数据块大小的函数。如果未提供任何值,则所有块的大小将为1。¥
size<Function> A function that size of the given chunk of data. If no value is provided, the size will be1for all the chunks.
-
-
-
¥Returns: <ReadableStream>