Re: [whatwg/streams] What should the behaviour of controller.close() be? (#774)

I prefer the word "abort" here, because "error" implies something has gone wrong, but actually we're just done transforming. Upstream sources get rejections, but this is similar to what happens in a Unix pipe when something in the middle decides it is done.

I have a slight preference for closeAndAbort() because it accentuates the positive aspect that we've finished with our work. Although the operations are effectively simultaneous, I feel like the close() takes priority so that the abort() doesn't end up erroring both sides.

-- 
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/issues/774#issuecomment-331431622

Received on Friday, 22 September 2017 12:21:46 UTC