Re: [whatwg/streams] Add WritableStream.write convenience method (PR #1339)

@lucacasonato commented on this pull request.



> @@ -4332,6 +4344,22 @@ as seen for example in [[#example-ws-no-backpressure]].
  1. Return ! [$IsWritableStreamLocked$]([=this=]).
 </div>
 
+<div algorithm>
+ The <dfn id="ws-write" method for="WritableStream">write(|chunk|)</dfn> method steps are:

I just realized the behavior is is wrong. The writer should be released immediately, not once the write promise resolves. This mirrors the behavior of the write method on https://fs.spec.whatwg.org/#filesystemwritablefilestream 

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/pull/1339#discussion_r1927820429
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/streams/pull/1339/review/2571239195@github.com>

Received on Thursday, 23 January 2025 23:35:01 UTC