lhotari commented on code in PR #25939:
URL: https://github.com/apache/pulsar/pull/25939#discussion_r3364000425


##########
pulsar-common/src/main/java/org/apache/pulsar/common/util/FutureUtil.java:
##########
@@ -200,6 +200,30 @@ public static <T> CompletableFuture<T> 
failedFuture(Throwable t) {
         return future;
     }
 
+    /**
+     * Invokes a supplier that is expected to return a {@link 
CompletableFuture}, converting synchronous failures into
+     * a failed future.
+     *
+     * If the supplier itself is {@code null}, the returned future is 
completed exceptionally with a

Review Comment:
   is null or returns null



-- 
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]

Reply via email to