sashapolo commented on code in PR #3216:
URL: https://github.com/apache/ignite-3/pull/3216#discussion_r1494180503


##########
modules/core/src/main/java/org/apache/ignite/internal/event/EventListener.java:
##########
@@ -33,4 +36,19 @@ public interface EventListener<P extends EventParameters> {
      *         future will never be completed with {@code null} value.
      */
     CompletableFuture<Boolean> notify(P parameters, @Nullable Throwable 
exception);
+
+    /**
+     * Creates an adapter for a given callback.
+     *
+     * <p>Created listener will never return a future completed with {@code 
true}.
+     */
+    static <P extends EventParameters> EventListener<P> 
fromConsumer(Consumer<P> callback) {

Review Comment:
   Added try-catch



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