He-Pin commented on code in PR #989:
URL: https://github.com/apache/incubator-pekko/pull/989#discussion_r1460745082
##########
stream/src/main/scala/org/apache/pekko/stream/javadsl/Sink.scala:
##########
@@ -69,6 +69,20 @@ object Sink {
f: function.Function2[U, In, CompletionStage[U]]): javadsl.Sink[In,
CompletionStage[U]] =
new Sink(scaladsl.Sink.foldAsync[U, In](zero)(f(_,
_).asScala).toCompletionStage())
+ /**
+ * A `Sink` that will invoke the given function for every received element,
giving it its previous
+ * output (or the given `false`) and the element as input.
+ * * The returned [[scala.concurrent.Future]] will be completed with value
of the final
Review Comment:
Java CompeletionStage
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]