- Sort Score
- Num 10 results
- Language All
Results 1 - 3 of 3 for getExitingScheduledExecutorService (0.43 seconds)
-
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) -
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) -
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)