CompletableFuture for Asynchronous Programming in Java 8
This package saw several very nice additions in Java 8. The ones we discuss in this article are the CompletionStage interface and the CompletableFuture implementing class. Along with the Future interface, they provide very nice patterns for building asynchronous systems.