public class Async
extends java.lang.Object
Constructor and Description |
---|
Async() |
Modifier and Type | Method and Description |
---|---|
static java.util.concurrent.ScheduledExecutorService |
defaultExecutorService()
Provide a new ScheduledExecutorService instance.
|
static <T> java.util.concurrent.CompletableFuture<T> |
run(java.util.concurrent.Callable<T> callable) |
public static <T> java.util.concurrent.CompletableFuture<T> run(java.util.concurrent.Callable<T> callable)
public static java.util.concurrent.ScheduledExecutorService defaultExecutorService()
A shutdown hook is created to terminate the thread pool on application termination.