- All Superinterfaces:
public interface ListenableFuture<T> extends Future<T>
A future that supports completion listeners.
addListenerRegister a listener to run on the given executor. The listener will run once and only once, if and when the Future's work is complete. If the future has completed already, the listener will run immediately. Ordering of listeners is not guaranteed.
listener- the listener to run
executor- the executor to run the listener