Save the date! Android Dev Summit is coming to Mountain View, CA on November 7-8, 2018.
added in API level 9

RunnableFuture

public interface RunnableFuture
implements Runnable, Future<V>

java.util.concurrent.RunnableFuture<V>


A Future that is Runnable. Successful execution of the run method causes completion of the Future and allows access to its results.

See also:

Summary

Public methods

abstract void run()

Sets this Future to the result of its computation unless it has been cancelled.

Inherited methods

Public methods

run

added in API level 9
public abstract void run ()

Sets this Future to the result of its computation unless it has been cancelled.