Re: [whatwg/streams] Synchronous (or asynchronous) state probing on WritableStream (#463)

When writing multiple chunks at once to a writable stream, we could check backpressure signal and error/close synchronously between those write() calls to avoid write()s on backpressured / errored /  closed stream. If we throw away `.state`, we cannot do that. We need to schedule a new microtask to do the next write() by then()-ing on `.ready`, `.closed` or the promise returned by the previous `.write()`.

I'm asking if this inconvenience is ok or not.

---
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/463#issuecomment-224228701

Received on Tuesday, 7 June 2016 09:33:31 UTC