public static < T > Future < T > fromIterable ( final Iterable < T > iterable ) { if ( iterable instanceof Future ) { return ( Future ) iterable ; } return Future . ofResult ( Eval . fromIterable ( iterable ) ) . map ( e -> e . get ( ) ) ; }
Construct a Future syncrhonously that contains a single value extracted from the supplied Iterable