Interface ApiFuture<V> (2.31.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

Name Description
V

Methods

addListener(Runnable listener, Executor executor)

public abstract void addListener(Runnable listener, Executor executor)
Parameters
Name Description
listener Runnable
executor Executor