[whatwg/streams] Consider using AggregateError for tee() cancelation reasons (#1134)

Currently we put the cancelation reasons into an array. But since tee() was invented, [AggregateError](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/AggregateError) has shipped, which is made for this purpose.

I'm not sure this is worth the breaking change (especially since it'd be pretty hard to measure usage of the array form), but I thought it'd be worth considering...

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

Received on Friday, 4 June 2021 13:39:18 UTC