Lines Matching refs:task

93         final Runnable task = new CheckedRunnable() {
98 p.execute(task);
529 Callable task = new CheckedCallable<Boolean>() {
536 tasks[i] = new FutureTask(task);
551 * remove(task) removes queued task, and fails to remove active task
601 Callable task = new CheckedCallable<Boolean>() {
607 tasks[i] = new FutureTask(task);
1033 Callable task = new CheckedCallable<Boolean>() {
1039 p.submit(task).get();
1061 Runnable task = new CheckedRunnable() {
1066 p.execute(task);
1069 p.execute(task);
1090 Runnable task = new CheckedRunnable() {
1095 p.submit(task);
1098 p.execute(task);
1119 Runnable task = new CheckedRunnable() {
1124 p.submit(Executors.callable(task));
1127 p.execute(task);
1139 * executor using CallerRunsPolicy runs task if saturated.
1166 * executor using DiscardPolicy drops task if saturated.
1180 for (TrackedNoOpRunnable task : tasks)
1181 p.execute(task);
1182 for (TrackedNoOpRunnable task : tasks)
1183 assertFalse(task.done);
1191 * executor using DiscardOldestPolicy drops oldest task if saturated.
1233 * execute using CallerRunsPolicy drops task on shutdown
1253 * execute using DiscardPolicy drops task on shutdown
1274 * execute using DiscardOldestPolicy drops task on shutdown
1396 * beforeExecute and afterExecute are called when executing task
1524 * invokeAny(c) throws ExecutionException if no task completes
1544 * invokeAny(c) returns result of some task
1616 * get of element of invokeAll(c) throws exception on failed task
1736 * timed invokeAny(c) throws ExecutionException if no task completes
1756 * timed invokeAny(c) returns result of some task
1847 * get of element of invokeAll(c) throws exception on failed task
2007 * execute allows the same task to be submitted multiple times, even