103 |
|
--active; |
104 |
|
try { |
105 |
|
return f.get(); |
106 |
< |
} catch(InterruptedException ie) { |
106 |
> |
} catch (InterruptedException ie) { |
107 |
|
throw ie; |
108 |
< |
} catch(ExecutionException eex) { |
108 |
> |
} catch (ExecutionException eex) { |
109 |
|
ee = eex; |
110 |
< |
} catch(RuntimeException rex) { |
110 |
> |
} catch (RuntimeException rex) { |
111 |
|
ee = new ExecutionException(rex); |
112 |
|
} |
113 |
|
} |
155 |
|
if (!f.isDone()) { |
156 |
|
try { |
157 |
|
f.get(); |
158 |
< |
} catch(CancellationException ignore) { |
159 |
< |
} catch(ExecutionException ignore) { |
158 |
> |
} catch (CancellationException ignore) { |
159 |
> |
} catch (ExecutionException ignore) { |
160 |
|
} |
161 |
|
} |
162 |
|
} |
201 |
|
return futures; |
202 |
|
try { |
203 |
|
f.get(nanos, TimeUnit.NANOSECONDS); |
204 |
< |
} catch(CancellationException ignore) { |
205 |
< |
} catch(ExecutionException ignore) { |
206 |
< |
} catch(TimeoutException toe) { |
204 |
> |
} catch (CancellationException ignore) { |
205 |
> |
} catch (ExecutionException ignore) { |
206 |
> |
} catch (TimeoutException toe) { |
207 |
|
return futures; |
208 |
|
} |
209 |
|
long now = System.nanoTime(); |