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

Comparing jsr166/src/main/java/util/concurrent/ExecutorService.java (file contents):
Revision 1.30 by dl, Tue Mar 1 01:27:46 2005 UTC vs.
Revision 1.31 by dl, Sun Mar 6 12:06:21 2005 UTC

# Line 141 | Line 141 | public interface ExecutorService extends
141  
142      /**
143       * Submits a value-returning task for execution and returns a
144 <     * Future representing the pending results of the task, and whose
145 <     * <<tt>get</tt> method will return the given result upon
144 >     * Future representing the pending results of the task. The
145 >     * Future's <tt>get</tt> method will return the given result upon
146       * <em>successful</em> completion.
147       *
148       * <p>
# Line 165 | Line 165 | public interface ExecutorService extends
165  
166      /**
167       * Submits a Runnable task for execution and returns a Future
168 <     * representing that task that will upon successful completion
169 <     * return the given result.
168 >     * representing that task. The Future's <tt>get</tt> method will
169 >     * return the given result upon successful completion.
170       *
171       * @param task the task to submit
172       * @param result the result to return
173 <     * @return a Future representing pending completion of the task,
174 <     * and whose <tt>get()</tt> method will return the given result
175 <     * upon successful completion.
173 >     * @return a Future representing pending completion of the task
174       * @throws RejectedExecutionException if task cannot be scheduled
175       * for execution
176       * @throws NullPointerException if task null    
# Line 181 | Line 179 | public interface ExecutorService extends
179  
180      /**
181       * Submits a Runnable task for execution and returns a Future
182 <     * representing that task.
182 >     * representing that task. The Future's <tt>get</tt> method will
183 >     * return <tt>null>/tt> upon successful completion.
184       *
185       * @param task the task to submit
186 <     * @return a Future representing pending completion of the task,
188 <     * and whose <tt>get()</tt> method will return <tt>null</tt>
189 <     * upon successful completion.
186 >     * @return a Future representing pending completion of the task
187       * @throws RejectedExecutionException if task cannot be scheduled
188       * for execution
189       * @throws NullPointerException if task null

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines