326 |
|
* interrupted or timed out while the current thread was |
327 |
|
* waiting, or the barrier was reset, or the barrier was |
328 |
|
* broken when {@code await} was called, or the barrier |
329 |
< |
* action (if present) failed due an exception. |
329 |
> |
* action (if present) failed due to an exception. |
330 |
|
*/ |
331 |
|
public int await() throws InterruptedException, BrokenBarrierException { |
332 |
|
try { |
396 |
|
* interrupted or timed out while the current thread was |
397 |
|
* waiting, or the barrier was reset, or the barrier was broken |
398 |
|
* when {@code await} was called, or the barrier action (if |
399 |
< |
* present) failed due an exception |
399 |
> |
* present) failed due to an exception |
400 |
|
*/ |
401 |
|
public int await(long timeout, TimeUnit unit) |
402 |
|
throws InterruptedException, |