September 2019
Intermediate to advanced
816 pages
18h 47m
English
JDK 8 has made a significant step forward in the world of asynchronous programming by enhancing Future with CompletableFuture. The main limitations of Future are:
A CompletableFuture doesn't have these limitations. A simple, but useless CompletableFuture can be written as follows:
CompletableFuture<Integer> completableFuture = new CompletableFuture<>();
The result can be obtained via the blocking get() method:
completableFuture.get();
In addition to this, let's see several examples of running asynchronous ...