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

I liked the semantics we have in the current spec, where the stream presents itself as empty while locked, and the reader presents as a closed stream after released.

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

This works too right?

\3. getReader() causes any pending read() operation to stay pending until release, at which time it re-polls the queue.

Of these I think I prefer 3 > 1 > 2.

> Regarding release:

Of these I think 3 is best and fits well with "the stream presents itself as empty while locked".


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

Received on Tuesday, 24 February 2015 15:46:12 UTC