45 |
|
* @editor $Author$ |
46 |
|
* @author Doug Lea |
47 |
|
*/ |
48 |
< |
public interface Future<V> { |
49 |
< |
|
50 |
< |
/** |
51 |
< |
* Returns <tt>true</tt> if the underlying task has completed. |
52 |
< |
* |
53 |
< |
* Completion may be due to normal termination, an exception, or |
54 |
< |
* cancellation -- in all of these cases, this method will return |
55 |
< |
* <tt>true</tt>. |
56 |
< |
* |
57 |
< |
* @return <tt>true</tt> if the underlying task has completed |
58 |
< |
*/ |
59 |
< |
boolean isDone(); |
48 |
> |
public interface Future<V> extends Cancellable { |
49 |
|
|
50 |
|
/** |
51 |
|
* Waits if necessary for computation to complete, and then |