16 |
|
* <tt>cancel</tt> method. Additional methods are provided to |
17 |
|
* determine if the task completed normally or was cancelled. Once a |
18 |
|
* computation has completed, the computation cannot be cancelled. |
19 |
+ |
* If you would like to use a <tt>Future</tt> for the sake |
20 |
+ |
* of cancellability but not provide a usable result, you can |
21 |
+ |
* declare types of the form <tt>Future<?></tt> and |
22 |
+ |
* return <tt>null</tt> as a result of the underlying task. |
23 |
|
* |
24 |
|
* <p> |
25 |
|
* <b>Sample Usage</b> (Note that the following classes are all |