Re: [streams] New proposal for byte stream uses cases (#289)

@yutakahirano that's a good point :(. Maybe it is OK, since it is not "normal" to call wait() many times. And we would probably store any extra buffers so that if you do `rbs.wait(); rbs.wait(); await rbs.wait();` then you could do `rbs.read()` three times before state goes from `"readable"` to `"waiting"`. But it is indeed a big semantic difference.

In that case there's another possibility, which is [the `feed` design](https://gist.github.com/domenic/e251e37a300e51c5321f#file-feed-js). We could even make the `feed` design a bit more ergonomic by, instead of returning `undefined` from the feed method, returning `this.ready`. But then it's still impossible to use a ReadableByteStream with generic readable stream code. I would rather not give up on that.

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

Received on Friday, 27 February 2015 09:36:12 UTC