Function toReadableStream
- to
Readable (reader, options?): ReadableStream<Uint8Array>Stream Parameters
- reader: Reader | Reader & Closer
The reader to read from
Optionaloptions: ToReadableStreamOptionsThe options
Returns ReadableStream<Uint8Array>
The readable stream
- reader: Reader | Reader & Closer
Create a ReadableStream of Uint8Arrays from a
Reader.When the pull algorithm is called on the stream, a chunk from the reader will be read. When
nullis returned from the reader, the stream will be closed along with the reader (if it is also aCloser).