1 |
|
/* |
2 |
|
* Written by Doug Lea with assistance from members of JCP JSR-166 |
3 |
|
* Expert Group and released to the public domain, as explained at |
4 |
< |
* http://creativecommons.org/licenses/publicdomain |
4 |
> |
* http://creativecommons.org/publicdomain/zero/1.0/ |
5 |
|
* Other contributors include Andrew Wright, Jeffrey Hayes, |
6 |
|
* Pat Fisher, Mike Judd. |
7 |
|
*/ |
366 |
|
new FutureTask(new CheckedInterruptedCallable<Object>() { |
367 |
|
public Object realCall() throws InterruptedException { |
368 |
|
threadStarted.countDown(); |
369 |
< |
Thread.sleep(LONG_DELAY_MS); |
369 |
> |
delay(LONG_DELAY_MS); |
370 |
|
return Boolean.TRUE; |
371 |
|
}}); |
372 |
|
|
395 |
|
new FutureTask(new CheckedInterruptedCallable<Object>() { |
396 |
|
public Object realCall() throws InterruptedException { |
397 |
|
threadStarted.countDown(); |
398 |
< |
Thread.sleep(LONG_DELAY_MS); |
398 |
> |
delay(LONG_DELAY_MS); |
399 |
|
return Boolean.TRUE; |
400 |
|
}}); |
401 |
|
|