Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: whatwg/streams Loading
base: 147faa3
Choose a base ref
...
head repository: whatwg/streams Loading
compare: 4d62b77
Choose a head ref
  • 1 commit
  • 3 files changed
  • 1 contributor

Commits on Jun 8, 2023

  1. TransformStream cleanup using "Transformer.cancel"

    This commit adds a "cancel" hook to "Transformer". This allows users to
    perform resource cleanup when the readable side of the TransformStream
    is cancelled, or the writable side is aborted.
    
    To preserve existing behavior, when the readable side is cancelled with
    a reason, the writable side is always immediately aborted with that same
    reason. The same is true in the reverse case. This means that the
    status of both sides is always either "closed", "erroring", or
    "erroring" when the "cancel" hook is called.
    
    "flush" and "cancel" are never both called. As per existing behaviour,
    when the writable side is closed the "flush" hook is called. If the
    readable side is cancelled while a promise returned from "flush" is
    still pending, "cancel" is not called. In this scenario the readable
    side ends up in the "errored" state, while the writable side ends up in
    the "closed" state.
    lucacasonato committed Jun 8, 2023
    Configuration menu
    Copy the full SHA
    4d62b77 View commit details
    Browse the repository at this point in the history
Loading