- From: Yonathan Randolph <notifications@github.com>
- Date: Wed, 20 Jul 2022 19:28:31 -0700
- To: whatwg/streams <streams@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 21 July 2022 02:28:54 UTC
In #1233 I also reported the issue that `ReadableStream.tee()` only partially signals backpressure, from the *faster* branch to the source, while leaving the slower branch accumulate unlimited data on its queue. Why not add an option `tee({fullBackpressure: true})` that fixes the implementation of `tee` and returns two readers that correctly signal backpressure from the *slower* branch to the source `ReadableStream`? Then you could do anything you want with the branches such as calling `pipeTo`, which is harder to do if you can only create nonexclusive `ReadableStreamDefaultReader`/`ReadableStreamBYOBReader`s. In one way, your proposal is more flexible in that you can dynamically add and remove non-exclusive readers, but is that really what you want? -- Reply to this email directly or view it on GitHub: https://github.com/whatwg/streams/issues/1235#issuecomment-1190966415 You are receiving this because you are subscribed to this thread. Message ID: <whatwg/streams/issues/1235/1190966415@github.com>
Received on Thursday, 21 July 2022 02:28:54 UTC