at java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:357) at java.util.concurrent.CompletableFuture.uniHandle(CompletableFuture.java</e
我使用CompletableFutureJava8类在Java中异步进行网络调用,特别是使用supplyAsync()方法。效果很好。我的第一种方法没有编译:
final CompletableFuture<ResponseType> completableFutureException = CompletableFuture.completedFuture= CompletableFuture.completedFuture(new Int
:268) at java.base/java.util.concurrent.CompletableFuture.uniExceptionally(CompletableFuture.java:990) at java.base/java.util.concurrent.CompletableFuture$UniExceptionally.tryFire(CompletableFuture.java</e