-
Notifications
You must be signed in to change notification settings - Fork 160
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
Make underlying sink writes abortable #1015
Comments
Yes, please! 😀 I've been trying to make a fully spec-compliant |
Random thought: what about transform streams? Should we also pass a signal to Slightly related: an underlying transformer currently has no way to know that its writable side has become aborted, or that its readable side has become cancelled. There's only |
We could also add it as a |
It's good to make We are discussing whether we want an abort operation which takes effect immediately even when there is an in-flight write or close operation (w3c/webtransport#248), but this should be a solution for the problem. cc: @jan-ivar |
Currently in Chrome SendStream's In the general case, when |
This allows an underlying sink to signal abort to the streams machinery even when it has a pending write or close operation. Fixes #1015.
We should pass an
AbortSignal
object to underling sinkwrite()
calls and signal abort if the stream is aborted.write()
implementations could either ignore it (giving the existing behaviour), or reject the promise they returned, making the abort operation complete more quickly than it would otherwise.This would also work with
pipeTo()
abort (as long as preventAbort was not set).The text was updated successfully, but these errors were encountered: