Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for sameThreadScheduledExecutor (0.23 sec)

  1. android/guava-testlib/test/com/google/common/util/concurrent/testing/TestingExecutorsTest.java

              @Override
              public Integer call() {
                taskDone = true;
                return 6;
              }
            };
        Future<Integer> future =
            TestingExecutors.sameThreadScheduledExecutor().schedule(task, 10000, TimeUnit.MILLISECONDS);
        assertTrue("Should run callable immediately", taskDone);
        assertEquals(6, (int) future.get());
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 3.7K bytes
    - Viewed (0)
  2. guava-testlib/test/com/google/common/util/concurrent/testing/TestingExecutorsTest.java

              @Override
              public Integer call() {
                taskDone = true;
                return 6;
              }
            };
        Future<Integer> future =
            TestingExecutors.sameThreadScheduledExecutor().schedule(task, 10000, TimeUnit.MILLISECONDS);
        assertTrue("Should run callable immediately", taskDone);
        assertEquals(6, (int) future.get());
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 3.7K bytes
    - Viewed (0)
Back to top