In Java 8, is it better for an interface or abstract class to define APIs that return a CompletableFuture instead of a Future ? Given this ugly conversion of Future to CompletableFuture , and the fact that CompletableFuture will give the caller more flexibility to use the functional style directly, which might be good why the API just returns Future ?
java java-8 interface future completable-future
derrdji
source share