Re: [whatwg/streams] [Question] how do you "unpipe"? (#1012)

You could create an `AbortController` and pass its `signal` to `a.pipeTo(b)` and `b.pipeTo(c)`, allowing you to abort both pipes. You should set `preventAbort = true` and `preventCancel = true` to prevent `a`/`c` from becoming canceled/aborted when you do this. See [this comment](https://github.com/whatwg/streams/issues/1004#issuecomment-508271679) for an example.

-- 
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/1012#issuecomment-525303855

Received on Tuesday, 27 August 2019 13:35:27 UTC