February 2014
Beginner
1248 pages
62h 25m
English
Java SE 8 introduces class CompletableFuture (package java.util.concurrent), which implements the Future interface and enables you to asynchronously execute Runnables that perform tasks or Suppliers that return values. Interface Supplier, like interface Callable, is a functional interface with a single method (in this case, get) that receives no arguments and returns a result. Class CompletableFuture provides many additional capabilities that for advanced programmers, such as creating CompletableFutures without executing them immediately, composing one or more CompletableFutures so that you can wait for any or all of them to complete, executing code after a CompletableFuture completes and ...
Read now
Unlock full access