Package | Description |
---|---|
com.google.common.util.concurrent |
Concurrency utilities.
|
Modifier and Type | Method and Description |
---|---|
void |
FluentFuture.addCallback(FutureCallback<? super V> callback,
Executor executor)
Registers separate success and failure callbacks to be run when this
Future 's
computation is complete or, if the
computation is already complete, immediately. |
static <V> void |
Futures.addCallback(ListenableFuture<V> future,
FutureCallback<? super V> callback)
Deprecated.
Use the
overload that requires an executor. For identical behavior, pass
MoreExecutors.directExecutor() , but consider whether another executor would be safer, as
discussed in the ListenableFuture.addListener
documentation. This method is scheduled to be removed in April 2018. |
static <V> void |
Futures.addCallback(ListenableFuture<V> future,
FutureCallback<? super V> callback,
Executor executor)
Registers separate success and failure callbacks to be run when the
Future 's
computation is complete or, if the
computation is already complete, immediately. |
Copyright © 2010–2018. All rights reserved.