Optional
options: ReadableStreamGetReaderOptionsOptional
options: StreamPipeOptionsAsynchronously iterates over the chunks in the stream's internal queue.
Asynchronously iterating over the stream will lock it, preventing any other consumer from acquiring a reader. The lock will be released if the async iterator's ReadableStreamAsyncIterator.return | return() method is called, e.g. by breaking out of the loop.
By default, calling the async iterator's ReadableStreamAsyncIterator.return | return() method will also
cancel the stream. To prevent this, use the stream's values() method, passing
true
for the preventCancel
option.
Optional
options: ReadableStreamIteratorOptionsStatic
fromStatic
from
MDN Reference