Re: [whatwg/streams] Make writer.abort() fail immediately (#715)

I wasn't thinking about it like that. You're right, since it is invisible to the user that controller.error() has been called they are not using abort() incorrectly and so can have a reasonable expectation that the invariant would hold.

You are right that I am contradicting what I said in https://github.com/whatwg/streams/pull/672#discussion_r104855103. I have been thinking about what I'd like to write in a "Design Principles" section, and this has convinced me that it is important to provide this guarantee.

But it worries me that this leads to a contradition with Domenic's conclusion in the [Writable stream state machine](https://docs.google.com/document/d/1rOe6CiEHxU7m3_YDh1lv334TxCR6i3X71Fjnem_XKCc/edit) document.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/pull/715#issuecomment-289979022

Received on Wednesday, 29 March 2017 04:29:33 UTC