-
Notifications
You must be signed in to change notification settings - Fork 30.6k
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
readable.pipe returns stream.Readable #22341
Comments
Hi! Can you explain what you are asking here? While everything you said is accurate, it’s not clear what you would like to see changed (if anything). Chaining pipes using this method only makes sense if the target If the returned value is not a I think changing what |
I'm only asking to make the documentation a little clearer. I guess I should have checked the code to determine that the It would also be helpful to document that Gunzip implements both |
Document how pipes can be chained in readable.pipe(). Document that zlib.Zlib inherits from stream.Transform. PR-URL: #22354 Fixes: #22341 Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Document how pipes can be chained in readable.pipe(). Document that zlib.Zlib inherits from stream.Transform. PR-URL: #22354 Fixes: #22341 Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
readable.pipe is documented to return
stream.Writable
. However, as onlystream.Readable
has apipe
method, it only makes sense to return that to set up chains of piped streams. I also verified that a pipe to aGunzip
object could be used as aReadable
stream.The text was updated successfully, but these errors were encountered: