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

@jasnell 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:

Releasing the writer works so long as releasing it does not lead the write being canceled. I believe it's fine now but I believe a [change](https://streams.spec.whatwg.org/#abstract-opdef-readablestreamdefaultreadererrorreadrequests) was recently made to `ReadableStream` that caused pending reads to be canceled. Are we certain a similar type of change won't be wanted with writers and would this interfere with that?

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

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

Received on Friday, 24 January 2025 00:07:48 UTC