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

Web Streams: support ReadableStreamBYOBReader.prototype.read(view, { min }) #50706

Closed
MattiasBuelens opened this issue Nov 13, 2023 · 1 comment · Fixed by #50888
Closed

Web Streams: support ReadableStreamBYOBReader.prototype.read(view, { min }) #50706

MattiasBuelens opened this issue Nov 13, 2023 · 1 comment · Fixed by #50888
Labels
feature request Issues that request new features to be added to Node.js. web streams

Comments

@MattiasBuelens
Copy link
Contributor

MattiasBuelens commented Nov 13, 2023

The Streams specification has been updated to add an optional min option to byobReader.read(view). When the min option is given, the read will only be fulfilled as soon as min number of elements are available in the stream.

Specification: https://streams.spec.whatwg.org/#byob-reader-read
Specification change: whatwg/streams#1145
Tests: web-platform-tests/wpt#29723

@MattiasBuelens
Copy link
Contributor Author

Quick heads-up: I'm working on an implementation myself. Expect a PR soon(ish). 😉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Issues that request new features to be added to Node.js. web streams
Projects
None yet
3 participants