public static < T , X extends Throwable > Future < T > fromTry ( final Try < T , X > value ) { return value . fold ( s -> Future . ofResult ( s ) , e -> Future . < T > of ( CompletableFutures . error ( e ) ) ) ; }
Construct a Future syncrhonously from the Supplied Try