- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for getThreadFactory (0.71 sec)
-
android/guava-tests/test/com/google/common/util/concurrent/MoreExecutorsTest.java
ThreadPoolExecutor executor = new ThreadPoolExecutor(1, 2, 3, SECONDS, new ArrayBlockingQueue<Runnable>(1)); assertThat(application.getExitingExecutorService(executor)).isNotNull(); assertTrue(executor.getThreadFactory().newThread(() -> {}).isDaemon()); } @AndroidIncompatible // Mocking ExecutorService is forbidden there. TODO(b/218700094): Don't mock. public void testGetExitingExecutorService_executorDelegatesToOriginal() {Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Fri Dec 12 00:25:21 UTC 2025 - 26.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/MoreExecutorsTest.java
ThreadPoolExecutor executor = new ThreadPoolExecutor(1, 2, 3, SECONDS, new ArrayBlockingQueue<Runnable>(1)); assertThat(application.getExitingExecutorService(executor)).isNotNull(); assertTrue(executor.getThreadFactory().newThread(() -> {}).isDaemon()); } @AndroidIncompatible // Mocking ExecutorService is forbidden there. TODO(b/218700094): Don't mock. public void testGetExitingExecutorService_executorDelegatesToOriginal() {Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Fri Dec 12 00:25:21 UTC 2025 - 26.5K bytes - Viewed (0) -
guava/src/com/google/common/util/concurrent/MoreExecutors.java
private static void useDaemonThreadFactory(ThreadPoolExecutor executor) { executor.setThreadFactory( new ThreadFactoryBuilder() .setDaemon(true) .setThreadFactory(executor.getThreadFactory()) .build()); } /** * Creates an executor service that runs each task in the thread that invokes {@code
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Wed Oct 08 18:55:33 UTC 2025 - 45.2K bytes - Viewed (0)