Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testSetValue_simpleThreaded (0.08 sec)

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

      public void testCreate() throws Exception {
        SettableFuture<Integer> future = SettableFuture.create();
        assertFalse(future.isDone());
        assertFalse(future.isCancelled());
      }
    
      public void testSetValue_simpleThreaded() throws Exception {
        SettableFuture<Integer> future = SettableFuture.create();
        assertTrue(future.set(42));
        // Later attempts to set the future should return false.
        assertFalse(future.set(23));
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 7.3K bytes
    - Viewed (0)
Back to top