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

> In [8a7d92b](https://github.com/whatwg/streams/commit/8a7d92b559c2b3f5028d9f48b49de90044be35c1) we made `cancel()` immediately kill any pending read requests. I believe if that change gets implemented in Chromium it would invalidate @reillyeon's suggestion.

Would it? If there are queued bytes then shouldn't the read complete before the call to `cancel()`? I guess it depends on whether `read()` queues a task to check the queue and so can never complete "synchronously".

-- 
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-882842038

Received on Monday, 19 July 2021 20:35:56 UTC