Re: [whatwg/streams] Do the abort steps of ReadableStreamPipeTo really guarantee the abort callback to be called before cancel? (Issue #1229)

Thanks, #1208 looks indeed very much related! The current Gecko implementation does not wait at all there and thus calls the shutdown actions synchronously, while both the reference impl and Blink waits there per the following code:

```js
var rs = new ReadableStream({ cancel() { console.log("canceled") } });
var ws = new WritableStream({ abort() { console.log("aborted") } });
var abortController = new AbortController();
var signal = abortController.signal;
abortController.abort();
rs.pipeTo(ws, { signal });
console.log("foo")

// Reference: foo aborted canceled
// Blink: foo aborted canceled
// Gecko: canceled foo aborted
```

Will #1208 change the behavior here as Gecko does?

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/issues/1229#issuecomment-1110284604
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/streams/issues/1229/1110284604@github.com>

Received on Tuesday, 26 April 2022 21:51:26 UTC