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

We should pass an `AbortSignal` object to underling sink `write()` 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).

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

Received on Friday, 13 September 2019 07:30:56 UTC