Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

New async iterable streams feature #1318

Merged
merged 3 commits into from
Jul 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions features/async-iterable-streams.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
name: Asynchronously iterable streams
description: Asynchronous iteration of a stream allows you to use `for await...of` loops to iterate through a stream's incoming data.
spec: https://streams.spec.whatwg.org/#rs-asynciterator
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you create a group for streams and put this and the existing feature in it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't have any better ideas, so I named the new group "Streams", like the feature. Any other ideas?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, that's what I had in mind. I don't love when features and groups have the same name, but this isn't the first such case.

group: streams
compat_features:
- api.ReadableStream.@@asyncIterator
13 changes: 13 additions & 0 deletions features/async-iterable-streams.yml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Generated from: async-iterable-streams.yml
# Do not edit this file by hand. Edit the source file instead!

status:
baseline: false
support:
chrome: "124"
chrome_android: "124"
edge: "124"
firefox: "110"
firefox_android: "110"
compat_features:
- api.ReadableStream.@@asyncIterator
1 change: 1 addition & 0 deletions features/streams.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: Streams
description: The streams API creates, composes, and consumes continuously generated data.
spec: https://streams.spec.whatwg.org/
caniuse: streams
group: streams
# TODO: Later support
# - api.ReadableStreamDefaultController
# - api.ReadableStreamDefaultController.close
Expand Down
2 changes: 2 additions & 0 deletions groups/streams.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# https://streams.spec.whatwg.org/
name: Streams