Re: [whatwg/streams] Make underlying sink writes abortable (#1015)

Random thought: what about transform streams? Should we also pass a signal to `transform()`, so the underlying transformer can stop early if it knows the transformed chunk will no longer be used? 🤔

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 `flush()`, which is called when the writable side becomes closed. Do we need an `abort(reason)` and/or `cancel(reason)` method on a transformer?

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/issues/1015#issuecomment-531247027

Received on Friday, 13 September 2019 13:56:50 UTC