-
Notifications
You must be signed in to change notification settings - Fork 154
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
feat: Add Flow/Sink#foldWhile operator. #1012
Conversation
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.
Just a quick review, found some encoding issue.
Verify on my laptop, looks like these comments aren't correct.
|
@Roiocam Thanks, I was checked |
@@ -67,6 +67,7 @@ class DslFactoriesConsistencySpec extends AnyWordSpec with Matchers { | |||
(classOf[scala.Function0[_]], classOf[pekko.japi.function.Creator[_]]) :: | |||
(classOf[scala.Function0[_]], classOf[java.util.concurrent.Callable[_]]) :: | |||
(classOf[scala.Function1[_, Unit]], classOf[pekko.japi.function.Procedure[_]]) :: | |||
(classOf[scala.Function1[_, Boolean]], classOf[pekko.japi.function.Predicate[_]]) :: |
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.
@GreyPlane I added one here.
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.
I noticed some typos, I would go over the documentation once more to make sure I also didn't miss anything.
Otherwise lgtm
docs/src/main/paradox/stream/operators/Source-or-Flow/foldWhile.md
Outdated
Show resolved
Hide resolved
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.
LGTM
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.
lgtm
Motivation:
When chating with @GreyPlane and @laglangyue for implementing the forAll and exists, I find pekko stream needs a foldWhile operator, which can help with that.
refs: #1010
Result:
Richer operators set.