@Beta @FunctionalInterface @GwtCompatible public interface AsyncCallable<V>
Futures.FutureCombiner.callAsync(AsyncCallable, java.util.concurrent.Executor)
.
Much like Callable
, but returning a ListenableFuture
result.
Modifier and Type | Method and Description |
---|---|
ListenableFuture<V> |
call()
Computes a result
Future . |
ListenableFuture<V> call() throws 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
.
Exception
Copyright © 2010–2020. All rights reserved.