He-Pin commented on code in PR #989:
URL: https://github.com/apache/incubator-pekko/pull/989#discussion_r1460744652
##########
stream-tests/src/test/java/org/apache/pekko/stream/javadsl/SinkTest.java:
##########
@@ -224,4 +225,20 @@ public void sinkForeachMustBeDocumented()
// #foreach
assertEquals(Done.done(), done);
}
+
+ @Test
+ public void sinkForallMustBeDocumented()
+ throws InterruptedException, ExecutionException, TimeoutException {
+ // #forall
+ Sink<Integer, CompletionStage<Boolean>> forallSink =
+ Sink.forall((Predicate<Integer>) param -> param > 0);
+ CompletionStage<Boolean> cs =
+ Source.from(Arrays.asList(1, 2, 3, 4)).runWith(forallSink, system);
+ Object predicate = cs.toCompletableFuture().get(100,
TimeUnit.MILLISECONDS);
+ System.out.println(predicate);
+ // will print
Review Comment:
Expect prints?
--
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]