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

> Do we support a platform which has a BYOB async read but doesn't have a sync cancel-read?

Hmm, I think so. At least I am not sure how to cancel an ongoing read(2) call. But I do not know my Unix APIs all that well :-/.

> If we do, we cannot get back the buffer from the platform until the read ends.

Yeah, as @tyoshino says, I think it is OK for the promises to take a while to fulfill with `{ value: view, done: true }`, as long as they do eventually.

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

Received on Tuesday, 10 March 2015 08:14:05 UTC