Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for Ex (1.04 sec)

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

        f.set("foo");
      }
    
      public void testExecutorSuccess() {
        CountingSameThreadExecutor ex = new CountingSameThreadExecutor();
        SettableFuture<String> f = SettableFuture.create();
        MockCallback callback = new MockCallback("foo");
        Futures.addCallback(f, callback, ex);
        f.set("foo");
        assertEquals(1, ex.runCount);
      }
    
      // Error cases
      public void testSameThreadExecutionException() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Nov 15 16:33:21 UTC 2022
    - 6.3K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/FutureCallbackTest.java

        f.set("foo");
      }
    
      public void testExecutorSuccess() {
        CountingSameThreadExecutor ex = new CountingSameThreadExecutor();
        SettableFuture<String> f = SettableFuture.create();
        MockCallback callback = new MockCallback("foo");
        Futures.addCallback(f, callback, ex);
        f.set("foo");
        assertEquals(1, ex.runCount);
      }
    
      // Error cases
      public void testSameThreadExecutionException() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Apr 06 12:56:11 UTC 2023
    - 6.3K bytes
    - Viewed (0)
Back to top