- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for testGetUnchecked_cancelled (0.09 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
android/guava-tests/test/com/google/common/util/concurrent/FuturesGetUncheckedTest.java
try { assertEquals("foo", getUnchecked(immediateFuture("foo"))); assertTrue(Thread.currentThread().isInterrupted()); } finally { Thread.interrupted(); } } public void testGetUnchecked_cancelled() { SettableFuture<String> future = SettableFuture.create(); future.cancel(true); assertThrows(CancellationException.class, () -> getUnchecked(future)); }Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 4.6K bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/FuturesGetUncheckedTest.java
try { assertEquals("foo", getUnchecked(immediateFuture("foo"))); assertTrue(Thread.currentThread().isInterrupted()); } finally { Thread.interrupted(); } } public void testGetUnchecked_cancelled() { SettableFuture<String> future = SettableFuture.create(); future.cancel(true); assertThrows(CancellationException.class, () -> getUnchecked(future)); }Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 4.6K bytes - Click Count (0)