public class Async extends Object
public static void shutdown()
public static <V> Promise<V> submit(Callable<V> callable)
V - 泛型类型callable - 任务public static <V> Promise<V> submit(Callable<V> callable, ExecutorService executorService)
V - 泛型类型callable - 任务executorService - 任务执行线程池Copyright © 2019. All rights reserved.