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

Hmm. I don't see many advantages to adding this restriction.

Part of the advantage of having a writable stream is to allow "fire and forget" writing: write(), write(), write(), write(), then go do something else. Maybe "something else" is close(), maybe it is releaseLock() and let someone else start their writing.

I would rather allow releasing the lock with pending writes, and just have further writes from a new exclusive writer go to the same queue.

---
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-230849608

Received on Wednesday, 6 July 2016 17:45:18 UTC