-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Adding optional eagerClose parameter to merge methods in FlowOps and javadsl method overloads #18959
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
Conversation
…overloads to corresponding javadsl methods
Can one of the repo owners verify this patch? |
OK TO TEST |
It looks like the build has failed due to #18961 having run after this build |
PLS BUILD |
LGTM, thanks @Athelionas! |
@@ -929,7 +929,22 @@ final class Flow[-In, +Out, +Mat](delegate: scaladsl.Flow[In, Out, Mat]) extends | |||
* '''Cancels when''' downstream cancels | |||
*/ | |||
def merge[T >: Out](that: Graph[SourceShape[T], _]): javadsl.Flow[In, T, Mat] = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't document that it uses false eager close.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
well, it does: the «completes when» clause clearly describes the behavior, that’s good enough for me
Hi! I commented that there was a bit of missing documentation, Since streams do not close, but complete, I'd propose that it is |
Hi! Thanks for the review, I'll add missing pieces to the documentation. I named the parameter after the eagerClose param of Merge and MergePreferred, but I agree. IMHO, it should have been called eagerComplete there too. If we decide to refactor the parameter names then we should do it consistently everywhere. |
@Athelionas I completely agree. And if we rename them on Merge and MergePreferred we should add a section to the migration guides (for those who might have used their current name in code) |
In theory we could use |
+1 for rename |
I checked the documentation and I don't really know what should be added. For example this line makes it quite clear what eagerClose (or eagerComplete) is: Default values should be stated though. In case of javadsl merge method without eagerClose parameter, What's your opinion? |
@Athelionas There were two changes discussed:
|
First point is done hopefully, second is in progress :) |
Hi @Athelionas, Let us know if you're stuck with some part of it. |
@@ -8,7 +8,7 @@ The 2.0 release contains some structural changes that require some | |||
simple, mechanical source-level changes in client code. | |||
|
|||
|
|||
Introduced proper named constructor methods insted of ``wrap()`` | |||
Introduced proper named constructor methods instead of ``wrap()`` | |||
================================================================ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please fix heading marker as well (one =
is missing now, sphinx is quite picky … )
@Athelionas please let us know if you intend to pick this up again, otherwise we’ll take it over on Monday. In any case thanks for the contribution! |
Can one of the repo owners verify this patch? |
OK TO TEST |
Taking over. |
#18948