1042 |
|
ExecutorService e = new ThreadPoolExecutor(2, 2, LONG_DELAY_MS, MILLISECONDS, new ArrayBlockingQueue<Runnable>(10)); |
1043 |
|
try { |
1044 |
|
ArrayList<Callable<String>> l = new ArrayList<Callable<String>>(); |
1045 |
< |
l.add(new CheckedCallable<String>() { |
1046 |
< |
public String realCall() throws InterruptedException { |
1047 |
< |
latch.await(); |
1045 |
> |
l.add(new Callable<String>() { |
1046 |
> |
public String call() { |
1047 |
> |
try { |
1048 |
> |
latch.await(); |
1049 |
> |
} catch (InterruptedException ok) {} |
1050 |
|
return TEST_STRING; |
1051 |
|
}}); |
1052 |
|
l.add(null); |