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

@zenparsing wait, now I realize that what you've said doesn't make sense. The scenario here is e.g.

```js
// rbs has 2 chunks
rbs.read(view1).then(...);
rbs.read(view2).then(...);
rbs.read(view3).then(...);
rbs.read(view4).then(...);
```

We would prefer if the memory in `view3` and `view4` was returned to this code somehow. @tyoshino's idea, I think, is that the last two fulfill with `{ value: zeroLengthViewOntoCorrespondingBuffer, done: true }`. I don't see any other real options.

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

Received on Thursday, 5 March 2015 22:48:27 UTC