Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for sameThreadScheduledExecutor (0.42 sec)

  1. 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)
  2. 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)
  3. android/guava-testlib/src/com/google/common/util/concurrent/testing/TestingExecutors.java

       * already have been executed.
       *
       * @since 32.0.0 (taking the place of a method with a different return type from 15.0)
       */
      @Beta
      public static ListeningScheduledExecutorService sameThreadScheduledExecutor() {
        return new SameThreadScheduledExecutorService();
      }
    
      private static final class NoOpScheduledExecutorService extends AbstractListeningExecutorService
          implements ListeningScheduledExecutorService {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri May 26 22:04:00 GMT 2023
    - 6.7K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/util/concurrent/testing/TestingExecutors.java

       * already have been executed.
       *
       * @since 32.0.0 (taking the place of a method with a different return type from 15.0)
       */
      @Beta
      public static ListeningScheduledExecutorService sameThreadScheduledExecutor() {
        return new SameThreadScheduledExecutorService();
      }
    
      private static final class NoOpScheduledExecutorService extends AbstractListeningExecutorService
          implements ListeningScheduledExecutorService {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri May 26 22:04:00 GMT 2023
    - 6.7K bytes
    - Viewed (0)
Back to top