public interface Executor
| Modifier and Type | Method and Description |
|---|---|
<T> Promise<T> |
async(Callable<T> task)
Async method
|
<T> T |
await(Promise<T> promise)
Await method
|
<T> T |
await(Promise<T> promise,
long duration,
TimeUnit timeUnit)
Await method for a given duration
|
<T> Promise<T> async(Callable<T> task)
task - the task to be asynchronously executed<T> T await(Promise<T> promise)
promise - The promise to await for<T> T await(Promise<T> promise, long duration, TimeUnit timeUnit) throws TimeoutException
promise - The promise to await forTimeoutException - raised when no result is available after a given delayCopyright © 2017. All rights reserved.