Re: [whatwg/streams] Introspection: disturbed or locked (#1105)

It's hard to read those old threads, as I've lost a lot of the context and it seems like we didn't have the notion of exclusive readers at the time `bodyUsed` and "disturbed" was added? So maybe the motivation doesn't make sense anymore?

I will say that I continue to believe `bodyUsed` is not great, and in particular giving information about whether the stream has been read from is not the sort of information programs should generally be branching on. Thus the cautionary note at https://streams.spec.whatwg.org/#is-readable-stream-disturbed

So my inclination for now is that it's best not to add more conveniences around this somewhat-legacy corner of the streams/fetch spec intersection. As @yutakahirano says in https://github.com/whatwg/streams/issues/1025, what people are most interested in is _validity_ of a stream, which is only tangentially connected to whether it's been disturbed, and is usually format-specific.

-- 
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/1105#issuecomment-771061649

Received on Monday, 1 February 2021 18:26:25 UTC