# | 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 |
40 | */ | |
41 | Future<V> submit(Callable<V> task); | |
42 | ||
# | Line 52 | Line 53 | public interface CompletionService<V> { | |
53 | * upon completion | |
54 | * @throws RejectedExecutionException if task cannot be scheduled | |
55 | * for execution | |
56 | + | * @throws NullPointerException if task null |
57 | */ | |
58 | Future<V> submit(Runnable task, V result); | |
59 |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |