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

writer.closed rejects when some error occurs in the writable stream. And therefore, those who're not interested in timing of successful completion of each write() but only interested in any error event may write() and forget but just watch writer.closed.

BYOB read() method has a logic that validates the argument and returns a rejected promise without erroring the stream when the validation fails. If we introduce similar logic to write(), the write()-and-forget() described above won't work.

Is this implying that such no-erroring rejection is bad design?

---
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

Received on Wednesday, 6 July 2016 13:27:12 UTC