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

One more point to consider about `.peek()` is that if the underlying byte source doesn't support precise flow-control, we cannot peek data from the source without draining data. E.g. we need to `read(2)` from a socket to build an ArrayBuffer for `.peek()`, and the `read(2)` would replenish the TCP window.

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

Received on Monday, 9 February 2015 11:42:31 UTC