Re: [whatwg/streams] Release reader immediately when shutting down a pipe (PR #1208)

@MattiasBuelens commented on this pull request.



> @@ -2210,6 +2221,10 @@ The following abstract operations operate on {{ReadableStream}} instances at a h
     ask to shutdown, optionally with an error |error|, then:
    1. If |shuttingDown| is true, abort these substeps.
    1. Set |shuttingDown| to true.
+   1. If |reader| [=implements=] {{ReadableStreamBYOBReader}}, perform

Not here, this is the *start* of the shutdown process.

But indeed, at the *end* of the shutdown process (i.e. "finalize"), *reader* will always be a default reader, since we would have gone through either "shutdown" or "shutdown with an action".

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/pull/1208#discussion_r792210833
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/streams/pull/1208/review/862984244@github.com>

Received on Tuesday, 25 January 2022 23:38:24 UTC