Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for Works (0.57 sec)

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

        assertFalse(delegates.get(0).cancel(true));
        // Cancel the delegate before the input future is done
        assertTrue(delegates.get(1).cancel(true));
        // Setting the future still works since cancellation didn't propagate
        assertTrue(future2.set(2L));
        // Second check to ensure the input future was not cancelled
        assertEquals((Long) 2L, getDone(future2));
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 144.5K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

        assertFalse(delegates.get(0).cancel(true));
        // Cancel the delegate before the input future is done
        assertTrue(delegates.get(1).cancel(true));
        // Setting the future still works since cancellation didn't propagate
        assertTrue(future2.set(2L));
        // Second check to ensure the input future was not cancelled
        assertEquals((Long) 2L, getDone(future2));
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 144.5K bytes
    - Viewed (0)
Back to top