Re: [whatwg/streams] Should write() always error the stream when it rejects the promise it returned? (#476)

> Allow separate validation and erroring capabilities. I guess the most natural way to do this is to say that returning a rejected promise from write() does not error the stream, and you have to do that with a separate controller.error() call?

Oh, interesting. But me too leaning toward error-the-whole option unless we come up with API with better distinction.

> For BYOB it seems a bit less clear since I don't think there's the possibility of that kind of skipping and of missing error notifications. So maybe the asymmetry is OK?

I see. Given that multiple outstanding read() is less useful than multiple outstanding (queued) write() in general.


---
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/476#issuecomment-232326312

Received on Wednesday, 13 July 2016 11:16:31 UTC