Example usage for Java com.google.common.util.concurrent ListenableFutureTask fields, constructors, methods, implement or subclass
The text is from its open source code.
void | addListener(Runnable listener, Executor exec) |
ListenableFutureTask | create(Callable Creates a ListenableFutureTask that will upon running, execute the given Callable . |
ListenableFutureTask | create(Runnable runnable, @Nullable 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. |
V | get() Waits if necessary for the computation to complete, and then retrieves its result. |