-
Notifications
You must be signed in to change notification settings - Fork 29.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
doc: stream.pipeline documentation is misleading WRT 'Iterable' as a valid first argument. #36437
Labels
doc
Issues and PRs related to the documentations.
good first issue
Issues that are suitable for first-time contributors.
stream
Issues and PRs related to the stream subsystem.
Comments
9 tasks
sounds like a bug in pipeline |
ronag
added
stream
Issues and PRs related to the stream subsystem.
good first issue
Issues that are suitable for first-time contributors.
labels
Dec 9, 2020
2 tasks
Lxxyx
added a commit
to Lxxyx/node
that referenced
this issue
Dec 11, 2020
targos
pushed a commit
that referenced
this issue
Dec 21, 2020
Fixes: #36437 PR-URL: #36479 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Yongsheng Zhang <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]>
BethGriggs
pushed a commit
that referenced
this issue
Jan 19, 2021
Fixes: #36437 PR-URL: #36479 Backport-PR-URL: #36831 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Yongsheng Zhang <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]>
BethGriggs
pushed a commit
that referenced
this issue
Jan 28, 2021
Fixes: #36437 PR-URL: #36479 Backport-PR-URL: #36831 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Yongsheng Zhang <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
doc
Issues and PRs related to the documentations.
good first issue
Issues that are suitable for first-time contributors.
stream
Issues and PRs related to the stream subsystem.
📗 API Reference Docs Problem
stream
Location
Affected URL(s):
Description
The documentation states the following:
This is misleading, as an
Array
is a validIterable
, yet using anArray
as the first argument with multiple streams results in an error:Output:
However, if you change
[1, 2, 3]
to[1, 2, 3].values()
then the call evaluates successfully. It seems likestream.pipeline
sees the first argument is anArray
and always picksstream.pipeline(streams, callback)
, even if there is adestination
and may be one or moretransforms
.The way the parameters are represented is also confusing. It looks like they are sorted alphabetically rather than based on the "overload" being called, so the "Returns:" bullet points don't make much sense.
The text was updated successfully, but these errors were encountered: