2555 |
|
* ongoing processing are automatically terminated upon program |
2556 |
|
* {@link System#exit}. Any program that relies on asynchronous |
2557 |
|
* task processing to complete before program termination should |
2558 |
< |
* invoke {@link #quiesceCommonPool}, or the timeout-based {@code |
2559 |
< |
* commonPool().}{@link #awaitQuiescence}, before exit. |
2558 |
> |
* invoke {@code commonPool().}{@link #awaitQuiescence}, before |
2559 |
> |
* exit. |
2560 |
|
* |
2561 |
|
* @return the common pool instance |
2562 |
|
*/ |
3171 |
|
* Waits and/or attempts to assist performing tasks indefinitely |
3172 |
|
* until the {@link #commonPool()} {@link #isQuiescent} |
3173 |
|
*/ |
3174 |
< |
public static void quiesceCommonPool() { |
3174 |
> |
static void quiesceCommonPool() { |
3175 |
|
common.awaitQuiescence(Long.MAX_VALUE, TimeUnit.NANOSECONDS); |
3176 |
|
} |
3177 |
|
|