pnowojski commented on a change in pull request #10336: 
[FLINK-14935][task,runtime] Use RunnableWithException in the Mailbox
URL: https://github.com/apache/flink/pull/10336#discussion_r351802556
 
 

 ##########
 File path: 
flink-core/src/main/java/org/apache/flink/util/function/FunctionUtils.java
 ##########
 @@ -115,4 +116,14 @@ private FunctionUtils() {
                        return result;
                };
        }
+
+       /**
+        * Converts a {@link RunnableWithException} into a {@link Callable} 
that will return the {@code result}.
+        */
+       public static <T> Callable<T> asCallable(RunnableWithException command, 
T result) {
 
 Review comment:
   ok, I will move it to the `RunnableWithException`.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to