73 |
|
* to complete, and then retrieves its result. |
74 |
|
* |
75 |
|
* @param timeout the maximum time to wait |
76 |
< |
* @param granularity the time unit of the timeout argument |
76 |
> |
* @param unit the time unit of the timeout argument |
77 |
|
* @return computed result |
78 |
|
* @throws ExecutionException if underlying computation threw an |
79 |
|
* exception |
81 |
|
* while waiting |
82 |
|
* @throws TimeoutException if the wait timed out |
83 |
|
*/ |
84 |
< |
V get(long timeout, TimeUnit granularity) |
84 |
> |
V get(long timeout, TimeUnit unit) |
85 |
|
throws InterruptedException, ExecutionException, TimeoutException; |
86 |
|
} |
87 |
|
|