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
Apache Commons Lang defines similar implementation that is called ConstantFuture, you can get it by calling:
Future future = ConcurrentUtils.constantFuture(T myValue);