Package datomic

Interface ListenableFuture<T>

All Superinterfaces:
Future<T>

public interface ListenableFuture<T> extends Future<T>
A future that supports completion listeners.
Since:
0.8.3591
  • Method Details

    • addListener

      void addListener(Runnable listener, Executor executor)
      Register 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.
      Parameters:
      listener - the listener to run
      executor - the executor to run the listener