Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testFutureCancelAfterCompletion (0.11 sec)

  1. android/guava-tests/test/com/google/common/util/concurrent/FuturesTransformAsyncTest.java

        funcCompletionLatch.countDown(); // allow the function to complete
        assertThrows(CancellationException.class, () -> outputFuture.get());
      }
    
      public void testFutureCancelAfterCompletion() throws Exception {
        inputFuture.set(VALID_INPUT_DATA);
        assertFalse(resultFuture.cancel(true));
        assertFalse(resultFuture.isCancelled());
        assertFalse(inputFuture.isCancelled());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/FuturesTransformAsyncTest.java

        funcCompletionLatch.countDown(); // allow the function to complete
        assertThrows(CancellationException.class, () -> outputFuture.get());
      }
    
      public void testFutureCancelAfterCompletion() throws Exception {
        inputFuture.set(VALID_INPUT_DATA);
        assertFalse(resultFuture.cancel(true));
        assertFalse(resultFuture.isCancelled());
        assertFalse(inputFuture.isCancelled());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 6.2K bytes
    - Viewed (0)
Back to top