Package | Description |
---|---|
com.google.common.util.concurrent |
Concurrency utilities.
|
Modifier and Type | Field and Description |
---|---|
private static AsyncFunction<ListenableFuture<java.lang.Object>,java.lang.Object> |
Futures.DEREFERENCER
|
private AsyncFunction<? super I,? extends O> |
Futures.ChainingListenableFuture.function |
Modifier and Type | Method and Description |
---|---|
private static <I,O> AsyncFunction<I,O> |
Futures.asAsyncFunction(Function<? super I,? extends O> function)
Wraps the given function as an AsyncFunction.
|
Modifier and Type | Method and Description |
---|---|
static <I,O> ListenableFuture<O> |
Futures.transform(ListenableFuture<I> input,
AsyncFunction<? super I,? extends O> function)
Returns a new
ListenableFuture whose result is asynchronously
derived from the result of the given Future . |
static <I,O> ListenableFuture<O> |
Futures.transform(ListenableFuture<I> input,
AsyncFunction<? super I,? extends O> function,
java.util.concurrent.Executor executor)
Returns a new
ListenableFuture whose result is asynchronously
derived from the result of the given Future . |
Constructor and Description |
---|
ChainingListenableFuture(AsyncFunction<? super I,? extends O> function,
ListenableFuture<? extends I> inputFuture) |