2521 |
|
* ongoing processing are automatically terminated upon program |
2522 |
|
* {@link System#exit}. Any program that relies on asynchronous |
2523 |
|
* task processing to complete before program termination should |
2524 |
< |
* invoke {@code commonPool().}{@link #awaitQuiescence}, before |
2525 |
< |
* exit. |
2524 |
> |
* invoke {@code commonPool().}{@link #awaitQuiescence awaitQuiescence}, |
2525 |
> |
* before exit. |
2526 |
|
* |
2527 |
|
* @return the common pool instance |
2528 |
|
* @since 1.8 |
3049 |
|
* is interrupted, whichever happens first. Because the {@link |
3050 |
|
* #commonPool()} never terminates until program shutdown, when |
3051 |
|
* applied to the common pool, this method is equivalent to {@link |
3052 |
< |
* #awaitQuiescence} but always returns {@code false}. |
3052 |
> |
* #awaitQuiescence(long, TimeUnit)} but always returns {@code false}. |
3053 |
|
* |
3054 |
|
* @param timeout the maximum time to wait |
3055 |
|
* @param unit the time unit of the timeout argument |