What is the best way to construct a completed future in Java? I have implemented my own CompletedFuture below, but was hoping something like this that already exist
CompletedFuture
In Java 8 you can use the built-in CompletableFuture:
Future future = CompletableFuture.completedFuture(value);