198 |
|
* {@link Callable} form so they can be submitted. |
199 |
|
* |
200 |
|
* @param task the task to submit |
201 |
+ |
* @param <T> the type of the task's result |
202 |
|
* @return a Future representing pending completion of the task |
203 |
|
* @throws RejectedExecutionException if the task cannot be |
204 |
|
* scheduled for execution |
213 |
|
* |
214 |
|
* @param task the task to submit |
215 |
|
* @param result the result to return |
216 |
+ |
* @param <T> the type of the result |
217 |
|
* @return a Future representing pending completion of the task |
218 |
|
* @throws RejectedExecutionException if the task cannot be |
219 |
|
* scheduled for execution |
245 |
|
* collection is modified while this operation is in progress. |
246 |
|
* |
247 |
|
* @param tasks the collection of tasks |
248 |
+ |
* @param <T> the type of the values returned from the tasks |
249 |
|
* @return a list of Futures representing the tasks, in the same |
250 |
|
* sequential order as produced by the iterator for the |
251 |
|
* given task list, each of which has completed |
273 |
|
* @param tasks the collection of tasks |
274 |
|
* @param timeout the maximum time to wait |
275 |
|
* @param unit the time unit of the timeout argument |
276 |
+ |
* @param <T> the type of the values returned from the tasks |
277 |
|
* @return a list of Futures representing the tasks, in the same |
278 |
|
* sequential order as produced by the iterator for the |
279 |
|
* given task list. If the operation did not time out, |
299 |
|
* collection is modified while this operation is in progress. |
300 |
|
* |
301 |
|
* @param tasks the collection of tasks |
302 |
+ |
* @param <T> the type of the values returned from the tasks |
303 |
|
* @return the result returned by one of the tasks |
304 |
|
* @throws InterruptedException if interrupted while waiting |
305 |
|
* @throws NullPointerException if tasks or any element task |
324 |
|
* @param tasks the collection of tasks |
325 |
|
* @param timeout the maximum time to wait |
326 |
|
* @param unit the time unit of the timeout argument |
327 |
+ |
* @param <T> the type of the values returned from the tasks |
328 |
|
* @return the result returned by one of the tasks |
329 |
|
* @throws InterruptedException if interrupted while waiting |
330 |
|
* @throws NullPointerException if tasks, or unit, or any element |