nx.js
Interfaces

ReadableStreamIteratorOptions

Properties

PropertyTypeDescription
preventCancel?booleanAsynchronously 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 return() method is called, e.g. by breaking out of the loop. By default, calling the async iterator's return() method will also cancel the stream. To prevent this, use the stream's values() method, passing true for the preventCancel option.

On this page