OptionaltotalByteSize: numberOptionalonprogress of the stream between 0 and 1. Undefined for streams of unknown size
OptionalsignalAsync iterator implementation to allow usage of for await...of syntax.
Yields each chunk's decoded text as it arrives - a delta, not the string accumulated so far.
Injects an AbortSignal, which if aborted, will terminate the currently active stream iteration operation.
Note that when using AbortSignal.timeout(...), the timeout applies across the whole iteration operation, not just one individual chunk read.
A class to read chunks from a ReadableStream and decode them as UTF-8 text.
NOTE: chunk-level
version(resending a chunk at an already-receivedchunkIndexto supersede it) is not supported. The reader used to rebuild the whole string from a per-index chunk map and yield it asTextStreamChunk.collected, which made superseding work; 5d4a6346 (#1410, text auto chunking) changed the iterator to yield each chunk's text as it arrives, and a streaming reader cannot retract text it has already handed to the consumer. No sender emits a versioned chunk.