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

Agreed. So, I'll change the locking to allow releasing writer with pending write()s.

Then, we can say that on both ReadableStream and WritableStream a lock is unreleasable while there's pending operation on the internal queue. WritableStream doesn't have any async operation regarding the queue, and therefore a lock can be released anytime.

BTW, was there any good reason for which we made the readable stream lock unreleasable? reader.closed must become unavailable to allow the next lock acquirer to hide state, but pending read() can be fulfilled remotely without any concern?

---
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#issuecomment-232004213

Received on Tuesday, 12 July 2016 10:45:41 UTC