What is the use of Async Mode methods in CompletableFuture when next stage will only start after finishing previous stage?

前端 未结 0 789
南笙
南笙 2021-01-31 01:23

CompletableFuture future = supplyAsync(()-> 4);

future.thenApplyAsync(data -> doSomeHeavyTask()   
      .thenApplyAsync(data -> doSomeLiteTask         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题