| Modifier and Type | Method and Description |
|---|---|
| public default boolean | |
| public default void | close()
Overrides default java. Initiates an orderly shutdown in which previously submitted tasks are executed, but no new tasks will be accepted. |
| awaitTermination | back to summary |
|---|---|
| public default boolean awaitTermination(Duration timeout) throws InterruptedException | |
| close | back to summary |
|---|---|
| public default void close() Overrides default java. Doc from java. Initiates an orderly shutdown in which previously submitted tasks are executed, but no new tasks will be accepted. This method waits until all tasks have completed execution and the executor has terminated. If interrupted while waiting, this method stops all executing tasks as
if by invoking If already terminated, invoking this method has no effect.
| |