首页 > TAG信息列表 > CompleteFuture

CompleteFuture详解

CompleteFuture使用详解 首先我们来看下常用的方法归类: 1.异步处理(最常用) runAsync(Runnable runnable,Executor executor) supplyAsync(Supplier<U> supplier, Executor executor) 2.completeFuture结果处理 CompletableFuture<U> thenApply( Function<? super T,? extends U> f