Re: [whatwg/streams] Allow stream reader cancel() method to return bytes from queue instead of discarding them. (#1147)

> Second, "reader.cancel()" is called to cancel reader NOT the stream itself. The whole stream has its own readable.cancel() to discard buffers.

This is not correct. readable.cancel() is the same as readable.getReader().cancel().

If you want to release a given reader, use reader.releaseLock().

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/issues/1147#issuecomment-883565658

Received on Tuesday, 20 July 2021 17:26:56 UTC