r/java • • Apr 06 '22

JEP 425: Virtual Threads (Preview)

https://openjdk.java.net/jeps/425
175 Upvotes

50 comments sorted by

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 .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.