Interface ApiFuture<V> (2.21.0)

public interface ApiFuture<V> extends Future<V>

A Future that can have a listener added.

Similar to Guava's ListenableFuture, but redeclared so that Guava could be shaded.

Implements

Future<V>

Type Parameter

NameDescription
V

Methods

addListener(Runnable listener, Executor executor)

public abstract void addListener(Runnable listener, Executor executor)
Parameters
NameDescription
listenerRunnable
executorExecutor