Class Async

java.lang.Object
org.web3j.utils.Async

public class Async extends Object
Async task facilitation.
  • Constructor Details

    • Async

      public Async()
  • Method Details

    • run

      public static <T> CompletableFuture<T> run(Callable<T> callable)
    • defaultExecutorService

      public static ScheduledExecutorService defaultExecutorService()
      Provide a new ScheduledExecutorService instance.

      A shutdown hook is created to terminate the thread pool on application termination.

      Returns:
      new ScheduledExecutorService