Re: [streams] Warning misbehaving underlying sources (#298)

I think your analysis makes sense. Should we allow double-close when not draining, even if both of them were underlying-source initiated? Or should we try to disallow double-close() in that case?

(The only way to make that work I think is to add another flag, or maybe another state which we treat very much like closed. So that's kind of annoying. But it seems also weird that if the queue has chunks in it, `close(); close();` will throw, whereas if all chunks have been read, `close(); close();` would work fine.)

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

Received on Tuesday, 17 March 2015 09:17:04 UTC