Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 3 of 3 for getExitingScheduledExecutorService (1.37 seconds)

  1. android/guava/src/com/google/common/util/concurrent/MoreExecutors.java

      @IgnoreJRERequirement // Users will use this only if they're already using Duration.
      public static ScheduledExecutorService getExitingScheduledExecutorService(
          ScheduledThreadPoolExecutor executor, Duration terminationTimeout) {
        return getExitingScheduledExecutorService(
            executor, toNanosSaturated(terminationTimeout), NANOSECONDS);
      }
    
      /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Jan 28 22:39:02 GMT 2026
    - 45.6K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/util/concurrent/MoreExecutorsTest.java

        TestApplication application = new TestApplication();
        ScheduledThreadPoolExecutor executor = new ScheduledThreadPoolExecutor(1);
        assertThat(application.getExitingScheduledExecutorService(executor)).isNotNull();
        assertTrue(executor.getThreadFactory().newThread(() -> {}).isDaemon());
      }
    
      @AndroidIncompatible // Mocking ExecutorService is forbidden there. TODO(b/218700094): Don't mock.
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 26.1K bytes
    - Click Count (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/MoreExecutorsTest.java

        TestApplication application = new TestApplication();
        ScheduledThreadPoolExecutor executor = new ScheduledThreadPoolExecutor(1);
        assertThat(application.getExitingScheduledExecutorService(executor)).isNotNull();
        assertTrue(executor.getThreadFactory().newThread(() -> {}).isDaemon());
      }
    
      @AndroidIncompatible // Mocking ExecutorService is forbidden there. TODO(b/218700094): Don't mock.
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 26.1K bytes
    - Click Count (0)
Back to Top