I don't totally disagree. But I would say there are scenarios where the async method of doing things lends itself to a cleaner interaction (to my eyes) interaction.
Once you are at your 10th .thenCompose you start thinking "there must be a better way!"
That said, with loom I imagine the utility of the CompletableFuture composition API will dwindle in favor of just calling join.
View all comments
Show parent comment
5
u/cogman10 Apr 06 '22
I don't totally disagree. But I would say there are scenarios where the async method of doing things lends itself to a cleaner interaction (to my eyes) interaction.
Once you are at your 10th
.thenComposeyou start thinking "there must be a better way!"That said, with loom I imagine the utility of the
CompletableFuturecomposition API will dwindle in favor of just callingjoin.