Package org.web3j.utils
Class Async
java.lang.Object
org.web3j.utils.Async
Async task facilitation.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ScheduledExecutorService
Provide a new ScheduledExecutorService instance.static <T> CompletableFuture<T>
-
Constructor Details
-
Async
public Async()
-
-
Method Details
-
run
-
defaultExecutorService
Provide a new ScheduledExecutorService instance.A shutdown hook is created to terminate the thread pool on application termination.
- Returns:
- new ScheduledExecutorService
-