Returns a new Future whose result is derived from the result of the given Future. If input fails, the returned Future fails with the same exception (and the function is not invoked). Example usage: {@code ListenableFuture queryFuture = ...; F
(ListenableFuture<I> input, Function<? super I, ? extends O> function)
| 595 | |
| 596 | |
| 597 | public static <I, O> ListenableFuture<O> transform(ListenableFuture<I> input, Function<? super I, ? extends O> function) { |
| 598 | return AbstractTransformFuture.create(input, function); |
| 599 | } |
| 600 | |
| 601 | /** |
| 602 | * Returns a new {@code Future} whose result is derived from the result of the given {@code |
no test coverage detected