[whatwg/streams] [WritableStream] Locking semantics (#474)

For ReadableStream, we specified the lock to be releasable only when there's no pending read().

For WritableStream, what should we do? While any write() is pending (returned promise is pending), a writer shouldn't be releasable? This means that while the queue is not empty, a writer cannot be released.

So, the queuing mechanism serves to single consumer. Does this sound right?


---
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/474

Received on Tuesday, 5 July 2016 11:33:34 UTC