Example usage for Java com.google.common.util.concurrent ListenableFuture fields, constructors, methods, implement or subclass
The text is from its open source code.
void | addListener(Runnable listener, Executor executor) Registers a listener to be Executor#execute(Runnable) run on the given executor. |
boolean | cancel(boolean mayInterruptIfRunning) Attempts to cancel execution of this task. |
boolean | equals(Object obj) Indicates whether some other object is "equal to" this one. |
V | get() Waits if necessary for the computation to complete, and then retrieves its result. |
V | get(long timeout, TimeUnit unit) Waits if necessary for at most the given time for the computation to complete, and then retrieves its result, if available. |
boolean | isCancelled() Returns true if this task was cancelled before it completed normally. |
boolean | isDone() Returns true if this task completed. |