- From: Takeshi Yoshino <notifications@github.com>
- Date: Fri, 18 Nov 2016 00:21:32 -0800
- To: whatwg/streams <streams@noreply.github.com>
Received on Friday, 18 November 2016 08:22:03 UTC
I had been thinking that `.abort()` should make the WritableStream to mark everything on it including `.closed` , pending `.write()`s and active `.write()` as aborted. I.e. almost in the same expectation as `.cancel()`. I don't object to the change. I agree that `.closed` should be delayed if we allow the active `.write()` to be fulfilled/rejected with the actual result of the corresponding `.write()` on the sink. Wait for the active `.write()`, reject all the pending `.write()`s and then `.closed`. One more point we should clarify. If the in-flight operation is `.close()`, we `abort()`-ed but it finished successfully, I think we should move the WritableStream into `"closed"` state as well as `.write()`s fulfills regardless of `.abort()`. Do you agree? -- 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/611#issuecomment-261474337
Received on Friday, 18 November 2016 08:22:03 UTC