Github user zentol commented on a diff in the pull request:

    https://github.com/apache/flink/pull/4438#discussion_r130429317
  
    --- Diff: 
flink-runtime/src/main/java/org/apache/flink/runtime/concurrent/FutureUtils.java
 ---
    @@ -344,4 +344,26 @@ public void onComplete(Throwable failure, T success) 
throws Throwable {
     
                return result;
        }
    +
    +   /**
    +    * Converts a Java 8 {@link java.util.concurrent.CompletableFuture} 
into a Flink {@link Future}.
    +    *
    +    * @param javaFuture to convert to a Flink future
    +    * @param <T> type of the future value
    +    * @return Flink future
    +    */
    +   public static <T> Future<T> 
toFlinkFuture(java.util.concurrent.CompletableFuture<T> javaFuture) {
    --- End diff --
    
    Add deprecated annotation?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to