amiwrong123
V2EX  ›  Java

CompletableFuture 的 thenCompose 感觉有点理解不能啊

  •  
  •   amiwrong123 · Aug 24, 2020 via Android · 2003 views
    This topic created in 2152 days ago, the information mentioned may be changed or developed.
    看了 thenCompose 的源码,感觉弄得挺复杂,到底该怎么理解它啊?感觉都不知道怎么应用 thenCompose

    其实和 thenCombine 也差不多嘛,也是依赖于两个输入。
    1 replies    2020-08-24 23:44:05 +08:00
    amiwrong123
        1
    amiwrong123  
    OP
       Aug 24, 2020
    感觉 thenCompose 很像 thenApplyAsync,但又不是。

    而且 thenComposeAsync 就更难理解了。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2628 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 15:51 · PVG 23:51 · LAX 08:51 · JFK 11:51
    ♥ Do have faith in what you're doing.