Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

FF134 ReadableStreamBYOBReader.read() takes options.min arg #37045

Merged

Conversation

hamishwillee
Copy link
Collaborator

ReadableStreamBYOBReader.read() now takes options.min argument in FF134 that allows you to specify a minimum number of elements to return each time the promise resolves while the stream is active.

This adds docs for the argument, and an example.
Note that most of the new live example is deliberately hidden, but I wanted to do it this way to show how it works in practice. I've pointed readers to the using guide for more info on "the detail" of that hidden code.

Related docs work can be tracked in #36921

@hamishwillee hamishwillee requested a review from a team as a code owner December 2, 2024 06:58
@hamishwillee hamishwillee requested review from sideshowbarker and removed request for a team December 2, 2024 06:58
@github-actions github-actions bot added the Content:WebAPI Web API docs label Dec 2, 2024
@github-actions github-actions bot added the size/m [PR only] 51-500 LoC changed label Dec 2, 2024
Copy link
Contributor

github-actions bot commented Dec 2, 2024

Preview URLs

(comment last updated: 2024-12-02 23:19:47)

@hamishwillee
Copy link
Collaborator Author

Thanks for the review @sideshowbarker

@hamishwillee hamishwillee merged commit dec8acd into mdn:main Dec 2, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Content:WebAPI Web API docs size/m [PR only] 51-500 LoC changed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants