src/main/java/javascalautils/concurrent/FutureCompanion.java
public static <T> Future<T> Future(java.util.concurrent.Future<T> future) {
        return Future.apply(() -> future.get());
    }
public static <T> Future<T> Future(java.util.concurrent.Future<T> future) {
        return Future.apply(() -> future.get());
    }
public static < T > Future < T > Future ( java . util . concurrent . Future < T > future ) { return Future . apply ( ( ) -> future . get ( ) ) ; }
Allows for converting a blocking JDK {@link java.util.concurrent.Future Future} into a non-blocking future. <br>
This will use the default executor to wait/block on the provided future.

@param <T>
The type for the Future
@param future
The blocking future
@return The future that will hold the result provided by the future
@since 1.5
Allows for converting a blocking JDK { @link java . util . concurrent . Future Future } into a non - blocking future . <br > This will use the default executor to wait / block on the provided future .