1178 |
|
ExecutorService e = new CustomTPE(2, 2, LONG_DELAY_MS, TimeUnit.MILLISECONDS, new ArrayBlockingQueue<Runnable>(10)); |
1179 |
|
try { |
1180 |
|
ArrayList<Callable<String>> l = new ArrayList<Callable<String>>(); |
1181 |
< |
l.add(new CheckedCallable<String>() { |
1182 |
< |
public String realCall() throws InterruptedException { |
1183 |
< |
latch.await(); |
1181 |
> |
l.add(new Callable<String>() { |
1182 |
> |
public String call() { |
1183 |
> |
try { |
1184 |
> |
latch.await(); |
1185 |
> |
} catch (InterruptedException ok) {} |
1186 |
|
return TEST_STRING; |
1187 |
|
}}); |
1188 |
|
l.add(null); |