| Package | Description |
|---|---|
| com.google.common.util.concurrent |
Concurrency utilities.
|
| Modifier and Type | Method and Description |
|---|---|
static <V> ListenableFutureTask<V> |
ListenableFutureTask.create(java.util.concurrent.Callable<V> callable)
Creates a
ListenableFutureTask that will upon running, execute the given Callable. |
static <V> ListenableFutureTask<V> |
ListenableFutureTask.create(java.lang.Runnable runnable,
V result)
Creates a
ListenableFutureTask that will upon running, execute the given Runnable, and arrange that get will return the given result on successful completion. |