Interface ApiFuture (2.64.0) (original) (raw)

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

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

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026-06-17 UTC.