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> |
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 |
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 |