mirror of
https://github.com/autc04/Retro68.git
synced 2024-12-13 18:34:45 +00:00
26 lines
747 B
Java
26 lines
747 B
Java
|
/*
|
||
|
* Written by Doug Lea with assistance from members of JCP JSR-166
|
||
|
* Expert Group and released to the public domain, as explained at
|
||
|
* http://creativecommons.org/licenses/publicdomain
|
||
|
*/
|
||
|
|
||
|
package java.util.concurrent;
|
||
|
|
||
|
/**
|
||
|
* A {@link Future} that is {@link Runnable}. Successful execution of
|
||
|
* the <tt>run</tt> method causes completion of the <tt>Future</tt>
|
||
|
* and allows access to its results.
|
||
|
* @see FutureTask
|
||
|
* @see Executor
|
||
|
* @since 1.6
|
||
|
* @author Doug Lea
|
||
|
* @param <V> The result type returned by this Future's <tt>get</tt> method
|
||
|
*/
|
||
|
public interface RunnableFuture<V> extends Runnable, Future<V> {
|
||
|
/**
|
||
|
* Sets this Future to the result of its computation
|
||
|
* unless it has been cancelled.
|
||
|
*/
|
||
|
void run();
|
||
|
}
|