Interface AsyncCallable<V>
- 
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
 
 @Beta @FunctionalInterface @GwtCompatible public interface AsyncCallable<V> Computes a value, possibly asynchronously. For an example usage and more information, seeFutures.FutureCombiner.callAsync(AsyncCallable, java.util.concurrent.Executor).Much like Callable, but returning aListenableFutureresult.- Since:
- 20.0
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description ListenableFuture<V>call()Computes a resultFuture.
 
- 
- 
- 
Method Detail- 
callListenableFuture<V> call() throws Exception Computes a resultFuture. The outputFutureneed not be done, makingAsyncCallablesuitable for asynchronous derivations.Throwing an exception from this method is equivalent to returning a failing ListenableFuture.- Throws:
- Exception
 
 
- 
 
-