- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for wasInterrupted (0.05 sec)
-
guava-tests/test/com/google/common/util/concurrent/SettableFutureTest.java
SettableFuture<Object> inner = SettableFuture.create(); async.setFuture(inner); async.cancel(true); assertTrue(inner.isCancelled()); assertTrue(inner.wasInterrupted()); assertThrows(CancellationException.class, () -> inner.get()); } public void testCancel_resultCancelsInner() throws Exception { SettableFuture<Object> async = SettableFuture.create();
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 7.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/TrustedListenableFutureTaskTest.java
assertFalse(task.isDone()); task.cancel(false); assertTrue(task.isDone()); assertTrue(task.isCancelled()); assertFalse(task.wasInterrupted()); assertThrows(CancellationException.class, () -> getDone(task)); verifyThreadWasNotInterrupted(); } public void testFailed() throws Exception { Exception e = new Exception();
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 7.2K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/TrustedListenableFutureTask.java
* won't have been called yet. */ this.task = null; } @Override protected void afterDone() { super.afterDone(); if (wasInterrupted()) { InterruptibleTask<?> localTask = task; if (localTask != null) { localTask.interruptTask(); } } this.task = null; } @Override
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Fri Jul 11 18:52:30 UTC 2025 - 5.5K bytes - Viewed (0)