Re: [streams] Support reading bytes into buffers allocated by user code on platforms where only async read is available (#253)

In my https://github.com/whatwg/streams/issues/253#issuecomment-77389072

It's specified to keep returning EOF signal by byteLength === 0.

> If consume() sees rs becoming closed, or consume() is called on a closed stream, filledView with byteLength === 0 is returned.

If you queue multiple read()s, you have the same number of promises and you have .then()-ed them. Each is fulfilled with EOF signal call. It's not hard to interpret.

---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/issues/253#issuecomment-77468667

Received on Thursday, 5 March 2015 22:44:17 UTC