Re: [streams] [WIP] Putting a chunk back in the readable stream queue (#275)

Yeah. Given that unshift() doesn't even work for the MSE case I think it's best to drop it.

I'm not even sure we need peek(). We don't really have a use case yet---everything is better handled by ReadableByteStream.

> Of course we could also survey npm packages to see how often their stream unshift is used. If its particularly popular, maybe we keep it in with the caveat it can fail if the stream closes on the last read.

On the other hand, this is a good point. And I still haven't even checked how Node's unshift interacts with Node streams closing. So I should do a quick survey of this kind of thing.

---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/pull/275#issuecomment-73528370

Received on Monday, 9 February 2015 15:34:33 UTC