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

Comparing jsr166/src/main/java/util/concurrent/CompletionService.java (file contents):
Revision 1.6 by dl, Mon Feb 9 13:28:47 2004 UTC vs.
Revision 1.7 by jsr166, Mon May 2 18:38:53 2005 UTC

# Line 36 | Line 36 | public interface CompletionService<V> {
36       * @return a Future representing pending completion of the task
37       * @throws RejectedExecutionException if task cannot be scheduled
38       * for execution
39 <     * @throws NullPointerException if task null    
39 >     * @throws NullPointerException if task null
40       */
41      Future<V> submit(Callable<V> task);
42  
43  
44      /**
45 <     * Submits a Runnable task for execution and returns a Future
45 >     * Submits a Runnable task for execution and returns a Future
46       * representing that task. Upon completion,
47       * this task may be taken or polled.
48       *
49       * @param task the task to submit
50       * @param result the result to return upon successful completion
51       * @return a Future representing pending completion of the task,
52 <     * and whose <tt>get()</tt> method will return the given result value
52 >     * and whose <tt>get()</tt> method will return the given result value
53       * upon completion
54       * @throws RejectedExecutionException if task cannot be scheduled
55       * for execution
56 <     * @throws NullPointerException if task null    
56 >     * @throws NullPointerException if task null
57       */
58      Future<V> submit(Runnable task, V result);
59  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines