Re: [whatwg/streams] Factor out condition to check pending operation (#672)

tyoshino commented on this pull request.



>  
   stream._state = 'errored';
   stream._storedError = e;
 
-  if (stream._pendingAbortRequest === undefined && stream._writer !== undefined) {
-    let readyPromiseIsPending = false;
-    if (oldState === 'writable' &&
-        WritableStreamDefaultControllerGetBackpressure(stream._writableStreamController) === true) {
-      readyPromiseIsPending = true;
+  // TODO(tyoshino): Given that writer.abort() fails immediately when the stream has been errored, shouldn't

Oh, I see. That was one of the keys of the change that you made closed, etc. delayed.

So, ... but, this rationale also applies to that `WritableStreamAbort()` call after `controller.error()` returns immediately even if the WritableStream has not yet became quiescent (the stream hasn't yet reflected completion of the underlying sink's method to itself).

-- 
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/pull/672#discussion_r104662189

Received on Tuesday, 7 March 2017 13:15:27 UTC