Re: [streams] Change the model for ReadableStream to have async read() (#288)

What semantics do you plan to give to the locking?

I can come up with ...

1. getReader() rejects any pending read() operation
1. getReader() fails if there's pending read() operation

Regarding release:

1. There's no way to get notified of release of the active reader
1. Add some rs.state enum item to indicate state of locking. Revive rs.ready to allow notification (this is only-for-get-notified-of-release stuff. basically don't want to have it?)?
1. Allow the user to call rs.read() but have it wait until release of the reader?

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

Received on Tuesday, 24 February 2015 12:25:12 UTC