rkhachatryan commented on a change in pull request #13067:
URL: https://github.com/apache/flink/pull/13067#discussion_r466257516
##########
File path:
flink-runtime/src/main/java/org/apache/flink/runtime/concurrent/FutureUtils.java
##########
@@ -90,6 +90,21 @@
}
}
+ /**
+ * Fakes asynchronous execution by immediately executing the operation
and completing the supplied future
+ * either noramlly or exceptionally.
+ *
+ * @param operation to executed
+ * @param <T> type of the result
+ */
+ public static <T> void completeFromCallable(CompletableFuture<T>
future, Callable<T> operation) {
Review comment:
I checked out `FutureUtils.runSyn` but I couldn't find any usages of it
(now and in the original commit too).
So I think we should just remove it, but also in a separate PR.
WDYT @AHeise?
----------------------------------------------------------------
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]