Cancel is used when you've completely finished with the stream and don't need any more data from it, even if there are chunks enqueued waiting to be read.
a Promise that resolves when the stream is canceled.
https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream/cancel
Cancel is used when you've completely finished with the stream and don't need any more data from it, even if there are chunks enqueued waiting to be read.
Optional
reason: stringa Promise that resolves when the stream is canceled.
Creates a reader and locks the stream to it. While the stream is locked, no other reader can be acquired until this one is released.
Missing declarations for constructor
, pipeThrough
, pipeTo
and tee
.
Generated using TypeDoc
Minimal types for a ReadableStream.