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

> - reader.read() returns { value: undefined, done: true }, or { value: view, done: true } for byte streams
> - whenever the reader is released, all pending read requests (which must have come from this reader) get fulfilled with { value: ..., done: true }, and then the list of pending read requests gets cleared.

Do we support a platform which has a BYOB async read but doesn't have a sync cancel-read? If we do, we cannot get back the buffer from the platform until the read ends.




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

Received on Tuesday, 10 March 2015 07:49:26 UTC