Lines Matching refs:task

49         final Runnable task = new CheckedRunnable() {
54 p.execute(task);
69 Callable task = new CheckedCallable<Boolean>() {
75 Future f = p.schedule(task, timeoutMillis(), MILLISECONDS);
92 Runnable task = new CheckedRunnable() {
97 Future f = p.schedule(task, timeoutMillis(), MILLISECONDS);
114 Runnable task = new CheckedRunnable() {
120 p.scheduleAtFixedRate(task, timeoutMillis(),
138 Runnable task = new CheckedRunnable() {
144 p.scheduleWithFixedDelay(task, timeoutMillis(),
169 Runnable task = new CheckedRunnable() {
172 p.scheduleAtFixedRate(task, 0, delay, MILLISECONDS);
197 Runnable task = new CheckedRunnable() {
200 p.scheduleWithFixedDelay(task, 0, delay, MILLISECONDS);
594 * remove(task) removes queued task, and fails to remove active task
651 for (ScheduledFuture task : tasks)
652 task.cancel(true);
691 for (ScheduledFuture task : tasks) {
692 assertFalse(task.isDone());
693 assertFalse(task.isCancelled());
694 assertTrue(q.contains(task));
699 for (ScheduledFuture task : tasks) {
700 assertTrue(task.isDone());
701 assertFalse(task.isCancelled());
725 for (ScheduledFuture task : tasks) {
726 assertTrue(task.isDone());
727 assertTrue(task.isCancelled());
743 ScheduledFuture task =
749 assertTrue(task.isDone());
750 assertTrue(task.isCancelled());
769 ScheduledFuture task =
771 assertFalse(task.isDone());
772 assertFalse(task.isCancelled());
774 assertFalse(task.isCancelled());
778 assertFalse(task.isCancelled());
779 assertTrue(task.cancel(false));
780 assertTrue(task.isDone());
781 assertTrue(task.isCancelled());
880 * invokeAny(c) throws ExecutionException if no task completes
897 * invokeAny(c) returns result of some task
957 * get of invokeAll(c) throws exception on failed task
1057 * timed invokeAny(c) throws ExecutionException if no task completes
1074 * timed invokeAny(c) returns result of some task
1150 * get of element of invokeAll(c) throws exception on failed task