Future < V > function ( V arg0 ) { Future < V > loc0 = Future . future ( ) ; setHandler ( ar -> { if ( ar . succeeded ( ) ) { loc0 . complete ( arg0 ) ; } else { loc0 . fail ( ar . cause ( ) ) ; } } ) ; return loc0 ; }
map the result of a future to a specific value . when this future succeeds , this value will complete the future returned by this method call.when this future fails , the failure will be propagated to the returned future . concode_field_sep FutureFactory factory concode_field_sep Future<T> setHandler concode_elem_sep Throwable cause concode_elem_sep boolean failed concode_elem_sep Future<T> failedFuture concode_elem_sep Future<T> failedFuture concode_elem_sep T result concode_elem_sep void fail concode_elem_sep void fail concode_elem_sep Future<U> compose concode_elem_sep Future<U> compose concode_elem_sep Future<T> future concode_elem_sep Future<T> succeededFuture concode_elem_sep Future<T> succeededFuture concode_elem_sep Handler<AsyncResult<T>> completer concode_elem_sep void complete concode_elem_sep void complete concode_elem_sep boolean isComplete concode_elem_sep boolean succeeded