Constructor and Description |
---|
ReadyFuture(T result)
create a future with it's result
|
Modifier and Type | Method and Description |
---|---|
boolean |
cancel(boolean mayInterruptIfRunning) |
T |
get() |
T |
get(long timeout,
TimeUnit unit) |
boolean |
isCancelled() |
boolean |
isDone() |
public ReadyFuture(T result)
result
- the resultpublic boolean cancel(boolean mayInterruptIfRunning)
public boolean isCancelled()
isCancelled
in interface Future<T>
Copyright © 2024 Visiativ. All rights reserved.