Re: [streams] What types does ReadableByteStream's reader's read(x) accept and return? (#295)

> I guess I kind of was thinking that close() should automatically do respond(0) for you. But actually that is perhaps not a good idea. Nevermind!

Yeah, we could. But it's possible if the underlying byte source wants to issue `controller.respond(0)`. If the underlying byte source has detached the given buffer, and then noticed that it's done, it has to issue `controller.close()` and then `controller.respond(0, buffer)` with the active buffer reference.

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

Received on Wednesday, 17 June 2015 03:28:13 UTC