- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for testFutureCancellableBeforeFunctionCompletion (0.59 sec)
-
android/guava-tests/test/com/google/common/util/concurrent/FuturesTransformAsyncTest.java
assertFalse(inputFuture.isCancelled()); assertTrue(outputFuture.isCancelled()); assertThrows(CancellationException.class, () -> resultFuture.get()); } public void testFutureCancellableBeforeFunctionCompletion() throws Exception { // Set the result in a separate thread since this test runs the function // (which will block) in the same thread. new Thread() { @Override
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 6.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/FuturesTransformAsyncTest.java
assertFalse(inputFuture.isCancelled()); assertTrue(outputFuture.isCancelled()); assertThrows(CancellationException.class, () -> resultFuture.get()); } public void testFutureCancellableBeforeFunctionCompletion() throws Exception { // Set the result in a separate thread since this test runs the function // (which will block) in the same thread. new Thread() { @Override
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 6.3K bytes - Viewed (0)