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

@nidhijaju commented on this pull request.

This seems okay, and I have no objections, but I haven't heard a ton of requests for this, which may affect when Chrome implements this.

> @@ -4270,6 +4271,17 @@ as seen for example in [[#example-ws-no-backpressure]].
  <dd>
   <p>Returns whether or not the writable stream is [=locked to a writer=].
 
+ <dt><code>await <var ignore>stream</var>.{{WritableStream/write(chunk)|write}}([ <var ignore>chunk</var> ])</code>
+ <dd>
+  <p>Writes a [=chunk=] of data to the stream just like the {{WritableStreamDefaultWriter/write()}}
+   method.
+
+  <p>This is a convenience method that first acquires a writer, queues the chunk to be written,
+   releases the writer (without waiting on the write to complete), and returns a promise that
+   fulfills if the write was successful, or reject if the write failed. Additionally, if the stream

minor nit:
```suggestion
   fulfills if the write was successful, or rejects if the write failed. Additionally, if the stream
```

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

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

Received on Monday, 27 January 2025 07:08:08 UTC