V
- The return type of the Task, Void if no return typepublic interface Task<V> extends Callable<V>
Modifier and Type | Method and Description |
---|---|
V |
blockUntilComplete()
Assuming invokeAsync() has been called, block until the execution completes
|
V |
call()
Compute the result immediately, in the current thread
|
void |
invokeAsync()
Schedule for asyncronous execution; returns immediately
|
V |
invokeBlocking()
Schedule for execution, and block until completion
|
V invokeBlocking()
void invokeAsync()
V blockUntilComplete()
Copyright © 2015. All Rights Reserved.