Re: [whatwg/streams] Marking promise rejections as handled (#547)

I think the same concern applies to the Promises returned by write() and close(), based on  my reading of the tests. They are frequently not handled, even though I wouldn't call them "state promises" as such. "event promises" maybe?

My analysis is that there are multiple ways of observing an error on a stream, only one of which needs to be handled for a program to be correct.

Possible solutions that come to mind:

1. Radically change the standard so that there is only one way of observing error.
2. Unconditionally mark all promises as handled.
3. Come up with some magic that marks all the promises as handled if at least one was handled.

-- 
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/547#issuecomment-255002596

Received on Thursday, 20 October 2016 03:52:13 UTC