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

Add a WriteableStream.write convenience method to write a single chunk. It locks, writes, then unlocks all in one call.

Towards #1072

- [ ] At least two implementers are interested (and none opposed):
   * Deno
   * …
- [ ] [Tests](https://github.com/web-platform-tests/wpt) are written and can be reviewed and commented upon at:
   * … <!-- If these tests are tentative, link a PR to make them non-tentative. -->
- [ ] [Implementation bugs](https://github.com/whatwg/meta/blob/main/MAINTAINERS.md#handling-pull-requests) are filed:
   * Chromium: …
   * Gecko: …
   * WebKit: …
   * Deno: …
   * Node.js: …
- [ ] [MDN issue](https://github.com/whatwg/meta/blob/main/MAINTAINERS.md#handling-pull-requests) is filed: …
- [x] The top of this comment includes a [clear commit message](https://github.com/whatwg/meta/blob/main/COMMITTING.md) to use. <!-- If you created this PR from a single commit, Github copied its message. Otherwise, you need to add a commit message yourself. -->

(See [WHATWG Working Mode: Changes](https://whatwg.org/working-mode#changes) for more details.)

You can view, comment on, or merge this pull request online at:

  https://github.com/whatwg/streams/pull/1339

-- Commit Summary --

  * Add WritableStream.write convenience method

-- File Changes --

    M index.bs (28)

-- Patch Links --

https://github.com/whatwg/streams/pull/1339.patch
https://github.com/whatwg/streams/pull/1339.diff

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

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

Received on Thursday, 23 January 2025 23:25:59 UTC