Interface ApiFuture<V>

Stay organized with collections Save and categorize content based on your preferences.
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