Re: [streams] Add IsReadableStreamDisturbed predicate (#385)

> But an operation made on a released reader making the ex-associated stream disturbed sounds strange.

Oh, you are right. It would mean that getting a reader for a closed/error stream would still have to hold on to the stream in order to maybe mark it disturbed.

This seems a bit silly. It means you cannot GC the stream if the reader is still alive, even though the stream is closed or errored.

But that is maybe not so bad since closed or errored streams do not have any data in their internal queue.

Also it would eliminate some internal complexity from the reader (the [[state]] and [[storedError]] fields).

And the silliness seems less bad than debating bodyUsed all over again.

What do you think?

---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/pull/385#issuecomment-128149814

Received on Wednesday, 5 August 2015 21:11:07 UTC