A ReadableStream that supports async iteration. Extends the standard ReadableStream with Symbol.asyncIterator support.
const stream = new IterableReadableStream<Uint8Array>(...)for await (const chunk of stream) { console.log(chunk)} Copy
const stream = new IterableReadableStream<Uint8Array>(...)for await (const chunk of stream) { console.log(chunk)}
The type of chunks yielded by the stream.
Optional
Returns an async iterator for the stream.
An async iterator that yields chunks from the stream.
A ReadableStream that supports async iteration. Extends the standard ReadableStream with Symbol.asyncIterator support.
Example