Searched refs:cancelled (Results 1 - 4 of 4) sorted by relevance

/libcore/jsr166-tests/src/test/java/jsr166/
H A DFutureTaskTest.java268 * runAndReset of a non-cancelled task succeeds
447 final CountDownLatch cancelled = new CountDownLatch(1);
452 await(cancelled);
478 cancelled.countDown();
520 final CountDownLatch cancelled = new CountDownLatch(1);
525 await(cancelled);
534 cancelled.countDown();
632 final CountDownLatch cancelled = new CountDownLatch(1);
642 await(cancelled);
667 cancelled
[all...]
H A DThreadPoolExecutorSubclassTest.java58 boolean cancelled; field in class:ThreadPoolExecutorSubclassTest.CustomTask
75 lock.lock(); try { return cancelled; } finally { lock.unlock() ; }
81 cancelled = true;
124 if (cancelled)
142 if (cancelled)
722 * purge removes cancelled tasks from the queue
1911 fail("expected exactly one task to be cancelled");
2003 * get(cancelled task) throws CancellationException
/libcore/ojluni/src/main/java/java/util/concurrent/
H A DScheduledThreadPoolExecutor.java69 * <p>When a submitted task is cancelled before it is run, execution
70 * is suppressed. By default, such a cancelled task is not
73 * cause unbounded retention of cancelled tasks.
287 boolean cancelled = super.cancel(mayInterruptIfRunning);
288 if (cancelled && removeOnCancel && heapIndex >= 0)
290 return cancelled;
385 t.isCancelled()) { // also remove if already cancelled
748 * Sets the policy on whether cancelled tasks should be immediately
761 * Gets the policy on whether cancelled tasks should be immediately
765 * @return {@code true} if cancelled task
[all...]
H A DCompletableFuture.java1914 * @throws CancellationException if this future was cancelled
1931 * @throws CancellationException if this future was cancelled
1954 * @throws CancellationException if the computation was cancelled
1969 * @throws CancellationException if the computation was cancelled
2287 * @return {@code true} if this task is now cancelled
2290 boolean cancelled = (result == null) &&
2293 return cancelled || isCancelled();
2297 * Returns {@code true} if this CompletableFuture was cancelled
2300 * @return {@code true} if this CompletableFuture was cancelled

Completed in 85 milliseconds