-
Notifications
You must be signed in to change notification settings - Fork 156
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 Sink#forall operator. #989
Conversation
@laglangyue Thanks and welcome the pr from China scala user group. ping me if you think it's ready. |
If you like , we can split the |
ok I will do this. |
@He-Pin ready |
stream/src/main/scala/org/apache/pekko/stream/scaladsl/Flow.scala
Outdated
Show resolved
Hide resolved
I was so foolish. I actually implemented |
stream-tests/src/test/java/org/apache/pekko/stream/javadsl/FlowTest.java
Outdated
Show resolved
Hide resolved
stream-tests/src/test/java/org/apache/pekko/stream/javadsl/SinkTest.java
Outdated
Show resolved
Hide resolved
stream-tests/src/test/scala/org/apache/pekko/stream/scaladsl/FlowForallSpec.scala
Outdated
Show resolved
Hide resolved
stream-tests/src/test/scala/org/apache/pekko/stream/scaladsl/FlowForallSpec.scala
Outdated
Show resolved
Hide resolved
stream-tests/src/test/scala/org/apache/pekko/stream/scaladsl/FlowForallSpec.scala
Outdated
Show resolved
Hide resolved
stream-tests/src/test/java/org/apache/pekko/stream/javadsl/SinkTest.java
Outdated
Show resolved
Hide resolved
stream-tests/src/test/java/org/apache/pekko/stream/javadsl/SinkTest.java
Outdated
Show resolved
Hide resolved
stream-tests/src/test/scala/org/apache/pekko/stream/scaladsl/SinkSpec.scala
Outdated
Show resolved
Hide resolved
stream/src/main/scala/org/apache/pekko/stream/javadsl/Sink.scala
Outdated
Show resolved
Hide resolved
stream/src/main/scala/org/apache/pekko/stream/javadsl/Sink.scala
Outdated
Show resolved
Hide resolved
stream/src/main/scala/org/apache/pekko/stream/scaladsl/Sink.scala
Outdated
Show resolved
Hide resolved
stream/src/main/scala/org/apache/pekko/stream/scaladsl/Sink.scala
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.
Need some changes, I have leave the comments.
stream/src/main/scala/org/apache/pekko/stream/scaladsl/Sink.scala
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.
Maybe we could use the same approach as lightbend/sbt-paradox-apidoc#130 does?
This PR has been delayed for a week, and my father passed away due to cancer. |
This comment was marked as outdated.
This comment was marked as outdated.
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, will need more eyes on this.
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.
@since 1.1.0
on all new public methods
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, Thanks.
I'm not an expert on the stream module, just some picky suggestions for paradox and testing.
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.
actually the since tags are still missing
This comment was marked as outdated.
This comment was marked as outdated.
@pjfanning I think this one should be fine now, networking issue slow me done. |
|
||
Source(1 to 2) | ||
.runWith(sink) | ||
.futureValue shouldBe true |
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.
@pjfanning The requested test have been added.
@pjfanning @mdedetrich ping for a review |
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:
Add
Sink#forall
operator for to test whether all the elements match a predicate.refs: #972
Note:
The origin author is @laglangyue and I updated and continued with it, so the review will leave to others.