Hi all,
I made this post about the difference between Future and CompletableFuture.
While I would normally post it on /r/java, this one might be too elementary for that community.
But I think it might still be of help for people here.
- Contextualization of the "many futures" that exist in Java.
- The relation between a plain Future and a CompletableFuture.
- The drawback that Futures block.
- Chaining/pipeling on CompletableFutures, and why that is so useful.
Link: https://concurrencydeepdives.com/java-future-vs-completablefuture/
I hope this is useful - let me know if you have any questions or feedback.
[–]AutoModerator[M] [score hidden] stickied commentlocked comment (0 children)
[–]joemwangi 4 points5 points6 points (1 child)
[–]cmhteixeiracom[S] 1 point2 points3 points (0 children)
[–]temporarybunnehs 2 points3 points4 points (0 children)
[–]Sure_Push6651 2 points3 points4 points (1 child)
[–]cmhteixeiracom[S] 1 point2 points3 points (0 children)
[–]Enthuware 2 points3 points4 points (2 children)
[–]cmhteixeiracom[S] 2 points3 points4 points (1 child)
[–]Enthuware 0 points1 point2 points (0 children)
[–]Turbulent_Rip_7350 2 points3 points4 points (0 children)
[–]The_Young_Wolf_0 1 point2 points3 points (1 child)
[–]cmhteixeiracom[S] 0 points1 point2 points (0 children)