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 6 you can use the following:
Promise p = new Promise(); p.resolve(value); return p.getFuture();