Lines Matching defs:task
27 * submitting a task to a {@code CompletionService}
29 * actions taken by that task, which in turn <i>happen-before</i>
34 * Submits a value-returning task for execution and returns a Future
35 * representing the pending results of the task. Upon completion,
36 * this task may be taken or polled.
38 * @param task the task to submit
39 * @return a Future representing pending completion of the task
40 * @throws RejectedExecutionException if the task cannot be
42 * @throws NullPointerException if the task is null
44 Future<V> submit(Callable<V> task);
47 * Submits a Runnable task for execution and returns a Future
48 * representing that task. Upon completion, this task may be
51 * @param task the task to submit
53 * @return a Future representing pending completion of the task,
56 * @throws RejectedExecutionException if the task cannot be
58 * @throws NullPointerException if the task is null
60 Future<V> submit(Runnable task, V result);
64 * completed task, waiting if none are yet present.
66 * @return the Future representing the next completed task
73 * completed task, or {@code null} if none are present.
75 * @return the Future representing the next completed task, or
82 * completed task, waiting if necessary up to the specified wait
89 * @return the Future representing the next completed task or