Skip to content
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

Add transformer.cancel method to TransformStream constructor #25519

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

MattiasBuelens
Copy link

Summary

The transformer object passed to the TransformStream constructor can now also have a cancel method, which is called whenever the readable side is cancelled or when the writable side is aborted. See the specification and the spec change for context.

Test results and supporting details

This method is not yet supported in any browser. However, server runtimes such as Node.js and Deno already support it:

@github-actions github-actions bot added data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API data:browsers Data about browsers (versions, release dates, etc). This data is used for validation. size:m [PR only] 25-100 LoC changed labels Dec 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API data:browsers Data about browsers (versions, release dates, etc). This data is used for validation. size:m [PR only] 25-100 LoC changed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant