Lines Matching refs:task

81             final Runnable task = new CheckedRunnable() {
83 p.execute(task);
96 Callable task = new CheckedCallable<Boolean>() {
102 Future f = p.schedule(task, timeoutMillis(), MILLISECONDS);
117 Runnable task = new CheckedRunnable() {
122 Future f = p.schedule(task, timeoutMillis(), MILLISECONDS);
137 Runnable task = new CheckedRunnable() {
143 p.scheduleAtFixedRate(task, timeoutMillis(),
159 Runnable task = new CheckedRunnable() {
165 p.scheduleWithFixedDelay(task, timeoutMillis(),
190 final Runnable task = new CheckedRunnable() {
193 p.scheduleAtFixedRate(task, 0, delay, MILLISECONDS);
209 * Eventually, it must hold that each task starts at least delay and at
210 * most 2 * delay after the termination of the previous task.
222 final Runnable task = new CheckedRunnable() {
239 p.scheduleWithFixedDelay(task, 0, delay, MILLISECONDS);
596 * remove(task) removes queued task, and fails to remove active task
632 for (ScheduledFuture task : tasks)
633 if (task != null) task.cancel(true); }};
719 for (ScheduledFuture task : tasks) {
720 assertFalse(task.isDone());
721 assertFalse(task.isCancelled());
795 // throw exception to surely terminate this periodic task,
801 Runnable task = new Task();
807 immediates.add(p.submit(task));
808 delayeds.add(p.schedule(task, delay, MILLISECONDS));
821 immediates.add(p.submit(task));
822 delayeds.add(p.schedule(task, effectiveDelayedPolicy ? delay : LONG_DELAY_MS, MILLISECONDS));
845 () -> p.submit(task),
846 () -> p.schedule(task, 1, SECONDS),
998 * invokeAny(c) throws ExecutionException if no task completes
1015 * invokeAny(c) returns result of some task
1071 * get of invokeAll(c) throws exception on failed task
1167 * timed invokeAny(c) throws ExecutionException if no task completes
1186 * timed invokeAny(c) returns result of some task
1260 * get of element of invokeAll(c) throws exception on failed task
1328 fail("expected exactly one task to be cancelled");
1335 * A fixed delay task with overflowing period should not prevent a
1336 * one-shot task from executing.