RunnableFuture

A {@link Future} that is {@link Runnable}. Successful execution of the {@code run} method causes completion of the {@code Future} and allows access to its results. @see FutureTask @see Executor @author Doug Lea @param (V) The result type returned by this Future's {@code get} method

interface RunnableFuture : Runnable , Future!(V)(
V
) {}

Members

Functions

run
void run()

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

Inherited Members

From Runnable

run
void run()

When an object implementing interface <code>Runnable</code> is used to create a thread, starting the thread causes the object's <code>run</code> method to be called in that separately executing thread. <p> The general contract of the method <code>run</code> is that it may take any action whatsoever.

Meta