Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for foobarbaz (0.04 sec)

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

        assertEquals(42, (int) future.get());
      }
    
      public void testSetException() throws Exception {
        SettableFuture<Object> future = SettableFuture.create();
        Exception e = new Exception("foobarbaz");
        assertTrue(future.setException(e));
        // Later attempts to set the future should return false.
        assertFalse(future.set(23));
        assertFalse(future.setException(new Exception("quux")));
    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