假设我有以下代码:
CompletableFuture<Integer> future = CompletableFuture.supplyAsync( () -> 0);
thenApply 案件:
thenApply
future.thenApply( x -> x + 1 ) .thenApply( x -> x + 1 )