Re: [whatwg/streams] Why does the `read` method of `ReadableStreamBYOBReader` class, need to _transfer_ the buffer it is provided? (Issue #1348)

bvisness left a comment (whatwg/streams#1348)

That would certainly be my preference, since it seems somewhat impractical to actually opt in in many places.

For example, `Request.body`. That's a getter that returns a ReadableStream. Is that stream shared or not? If it's not, then how do you get a shared stream for use with SAB? If it is, then we _do_ have a backwards compatibility problem since existing code that (hypothetically) does `transfer` will break. This seems like a nasty and very viral API problem. 

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/issues/1348#issuecomment-3191372955
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/streams/issues/1348/3191372955@github.com>

Received on Friday, 15 August 2025 12:15:59 UTC