| Package | Description |
|---|---|
| com.google.common.util.concurrent |
Concurrency utilities.
|
| Modifier and Type | Method and Description |
|---|---|
static <V> ListenableFutureTask<V> |
ListenableFutureTask.create(Callable<V> callable)
Creates a
ListenableFutureTask that will upon running, execute the given Callable. |
static <V> ListenableFutureTask<V> |
ListenableFutureTask.create(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. |
Copyright © 2010–2018. All rights reserved.