Re: [streams] rsReader.readBatch(numberOfChunks)? rbsReader.read(view, { waitUntilDone: true })? (#320)

I guess `readBatch(numberOfChunks)` is proposed here instead of providing only `readAllAvailable()` in order to control back-pressure precisely (if the consumer is ready to consume only up to 3 chunks, it can call `readBatch(3)`). If we want to give the same functionality to `readBatch(N)` of ReadableByteStream, I have no idea how much value we should set `N` to if `N` means number of chunks.

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

Received on Friday, 10 April 2015 16:29:01 UTC