168 |
|
* sensible to serialize tasks only before or after, but not during, |
169 |
|
* execution. Serialization is not relied on during execution itself. |
170 |
|
* |
171 |
+ |
* @param <V> the type of the result of the task |
172 |
+ |
* |
173 |
|
* @since 1.7 |
174 |
|
* @author Doug Lea |
175 |
|
*/ |
1018 |
|
|
1019 |
|
/** |
1020 |
|
* Tries to join this task, returning true if it completed |
1021 |
< |
* (possibly exceptionally) before the given timeout and/or the |
1022 |
< |
* the current thread has been interrupted, else false. |
1021 |
> |
* (possibly exceptionally) before the given timeout and |
1022 |
> |
* the current thread has not been interrupted. |
1023 |
|
* |
1024 |
|
* @param timeout the maximum time to wait |
1025 |
|
* @param unit the time unit of the timeout argument |