@Beta @GwtCompatible public interface AsyncCallable<V>
Futures.FutureCombiner.callAsync(AsyncCallable).
Much like Callable, but returning a ListenableFuture
result.
| Modifier and Type | Method | Description |
|---|---|---|
ListenableFuture<V> |
call() |
Computes a result
Future. |
ListenableFuture<V> call() throws java.lang.Exception
Future. The output Future need not be done, making AsyncCallable suitable for asynchronous derivations.
Throwing an exception from this method is equivalent to returning a failing ListenableFuture.
java.lang.Exception