-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
Optional parameter strategy
for stream.Readable.toWeb()
?
#43487
Comments
@nodejs/streams |
@rauschma hey Axel, sure this is a pretty easy fix, the code is in /lib/internal/webstreams/adapters.js line 389, the code currently just does: const strategy =
objectMode ?
new CountQueuingStrategy({ highWaterMark }) :
{ highWaterMark }; Would you be interested in contributing a fix? (Happy to guide you through) |
I took it upon myself to make a change to include a This would be my first PR against the Node code base, please don't be too hard on me lol. The tests are pending but I would love to hear how I can approach them. |
There has been no activity on this feature request for 5 months and it is unlikely to be implemented. It will be closed 6 months after the last non-automated comment. For more information on how the project manages feature requests, please consult the feature request management document. |
This already landed 🎉 |
What is the problem this feature will solve?
Currently, it is not possibly to customize the queueing strategy of the ReadableStream returned by
stream.Readable.toWeb()
.What is the feature you are proposing to solve the problem?
Change the signature from:
What alternatives have you considered?
I’m not aware of any alternatives: As far as I know, there is no way to change the queuing strategy of a ReadableStream after its constructor was invoked.
The text was updated successfully, but these errors were encountered: