Lines Matching refs:task

129  * submission of a {@code Runnable} or {@code Callable} task to an
132 * any actions taken by that task, which in turn <i>happen-before</i> the
171 * task that fails to respond to interrupts may never terminate.
215 * Submits a value-returning task for execution and returns a
216 * Future representing the pending results of the task. The
217 * Future's {@code get} method will return the task's result upon
222 * for a task, you can use constructions of the form
230 * @param task the task to submit
231 * @param <T> the type of the task's result
232 * @return a Future representing pending completion of the task
233 * @throws RejectedExecutionException if the task cannot be
235 * @throws NullPointerException if the task is null
237 <T> Future<T> submit(Callable<T> task);
240 * Submits a Runnable task for execution and returns a Future
241 * representing that task. The Future's {@code get} method will
244 * @param task the task to submit
247 * @return a Future representing pending completion of the task
248 * @throws RejectedExecutionException if the task cannot be
250 * @throws NullPointerException if the task is null
252 <T> Future<T> submit(Runnable task, T result);
255 * Submits a Runnable task for execution and returns a Future
256 * representing that task. The Future's {@code get} method will
259 * @param task the task to submit
260 * @return a Future representing pending completion of the task
261 * @throws RejectedExecutionException if the task cannot be
263 * @throws NullPointerException if the task is null
265 Future<?> submit(Runnable task);
272 * Note that a <em>completed</em> task could have
281 * given task list, each of which has completed
285 * @throws RejectedExecutionException if any task cannot be
298 * Note that a <em>completed</em> task could have
309 * given task list. If the operation did not time out,
310 * each task will have completed. If it did time out, some
316 * @throws RejectedExecutionException if any task cannot be scheduled
335 * @throws NullPointerException if tasks or any element task
338 * @throws ExecutionException if no task successfully completes
361 * task subject to execution is {@code null}
363 * any task successfully completes
364 * @throws ExecutionException if no task successfully completes