356 |
|
* executed, but no new tasks will be accepted. This method waits until all |
357 |
|
* tasks have completed execution and the executor has terminated. |
358 |
|
* |
359 |
< |
* <p> If interrupted while waiting, this method stops all executing tasks as |
359 |
> |
* <p>If interrupted while waiting, this method stops all executing tasks as |
360 |
|
* if by invoking {@link #shutdownNow()}. It then continues to wait until all |
361 |
|
* actively executing tasks have completed. Tasks that were awaiting |
362 |
|
* execution are not executed. The interrupt status will be re-asserted |
363 |
|
* before this method returns. |
364 |
|
* |
365 |
< |
* <p> If already terminated, invoking this method has no effect. |
365 |
> |
* <p>If already terminated, invoking this method has no effect. |
366 |
|
* |
367 |
|
* @implSpec |
368 |
|
* The default implementation invokes {@code shutdown()} and waits for tasks |