Re: [streams] Add .bytesRead to ReadableByteStream.*Reader (#367)

I'd ideally like to generalize this to ReadableStream as well, using the size() measuring functionality from the queuing strategy. In which case it needs a better name. consumedSize? consumed? readCount? readSize? offset? (I think I like offset the most.)

Also, I would really appreciate if anyone else has scenarios where this property is useful, besides HTTP streams and Content-Length. I guess in general it can be useful for progress meter type things. What else?

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

Received on Thursday, 18 June 2015 15:04:59 UTC