ReadableStreamReaderExtensions extension

Extensions on ReadableStreamReader.

on

Methods

read() Future<ReadableStreamDefaultReadResult>
Returns a promise that allows access to the next chunk from the stream’s internal queue, if available.
releaseLock() → void
Releases the reader’s lock on the corresponding stream. After the lock is released, the reader is no longer active. If the associated stream is errored when the lock is released, the reader will appear errored in the same way from now on; otherwise, the reader will appear closed.