-
Notifications
You must be signed in to change notification settings - Fork 30.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Iterating cancelled ReadableStream #39715
Comments
Also as far as I know there is no introspection here where one could determine if the stream is cancelled before iterating it. |
Yeah, this is expected behavior. The semantics of |
Hm, this makes it difficult to implement fetch. Right now if the stream is cancelled we get a false success :/ |
The way fetch is currently defined, it's able to access the internal state of the ReadableStream. We'll likely have to do the same unless we're able to get a couple new public APIs added. |
Actually fetch spec says to "error" the stream and not "cancel", so I assume it refers to |
This is kind of weird behavior I'm not sure what to think about. Iterating a cancelled readable stream will not throw...
This means that e.g. helpers from #39594 can succeeded without any data.
The text was updated successfully, but these errors were encountered: