public class Async extends Object
| 构造器和说明 |
|---|
Async() |
| 限定符和类型 | 方法和说明 |
|---|---|
static ScheduledExecutorService |
defaultExecutorService()
Provide a new ScheduledExecutorService instance.
|
static <T> CompletableFuture<T> |
run(Callable<T> callable) |
public static <T> CompletableFuture<T> run(Callable<T> callable)
public static ScheduledExecutorService defaultExecutorService()
A shutdown hook is created to terminate the thread pool on application termination.
Copyright © 2025. All rights reserved.