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

Yes, please! 😀

I've been trying to make a fully spec-compliant `TransformStream` polyfill that uses native `ReadableStream` and `WritableStream`, so only using their public API. However, I ran into problems with [TransformStreamDefaultSinkWriteAlgorithm](https://streams.spec.whatwg.org/#transform-stream-default-sink-write-algorithm), which needs to check whether the stream is `erroring` (i.e. `abort()` has been called) before it transforms the chunk. Currently, this is impossible to know using only the public API. Having an `AbortSignal` passed to each sink `write()` call would solve this.

-- 
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-531188273

Received on Friday, 13 September 2019 10:36:23 UTC