ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/main/java/util/concurrent/CancellableTask.java
(Generate patch)

Comparing jsr166/src/main/java/util/concurrent/CancellableTask.java (file contents):
Revision 1.13 by dl, Sun Aug 24 14:47:31 2003 UTC vs.
Revision 1.14 by dl, Sun Aug 31 13:33:13 2003 UTC

# Line 9 | Line 9 | import java.util.concurrent.atomic.*;
9   import java.util.concurrent.locks.*;
10  
11   /**
12 < * Base class for cancellable actions running in the Executor
13 < * framework. In addition to serving as a standalone class, this
14 < * provides <tt>protected</tt> functionality that may be useful when
15 < * creating customized task classes.
12 > * Base class for {@link Cancellable} {@link java.lang.Runnable}
13 > * actions within the {@link Executor} framework. In addition to
14 > * serving as a standalone class, this provides <tt>protected</tt>
15 > * functionality that may be useful when creating customized task
16 > * classes.
17   * @since 1.5
18   * @author Doug Lea
19   */
# Line 61 | Line 62 | public class CancellableTask implements
62       * Creates a new CancellableTask without a runnable action, which
63       * must be set using <tt>setRunnable</tt> before use.  This is
64       * intended for use in subclasses that must complete superclass
65 <     * construction beofre establishing the runnable action.
65 >     * construction before establishing the runnable action.
66       */
67      protected CancellableTask() {
68      }
# Line 259 | Line 260 | V&gt; {
260           * result.
261           *
262           * @param timeout the maximum time to wait
263 <         * @param granularity the time unit of the timeout argument
263 >         * @param unit the time unit of the timeout argument
264           * @return computed result
265           * @throws ExecutionException if underlying computation threw an
266           * exception

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines