Java 8 multithreading programming has an important feature named CompletableFuture.
In previous post about Java Future, we have the concept of a Future object, which can help us make something done while waiting for other things. However, although we can inspect Future objects to see if they’re done, what if we wanna execute some code whenever its ready? We still have to wait until the result is available.
CompletableFuture meets the requirement, and more than that.
Related articles:
– Java Future
– CompletableFuture Handle Exception
– Java 8 Multiple CompletableFutures
Continue reading “Java 8 CompletableFutures”