Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for getThreadFactory (0.25 sec)

  1. guava-tests/test/com/google/common/util/concurrent/MoreExecutorsTest.java

        ThreadPoolExecutor executor =
            new ThreadPoolExecutor(1, 2, 3, SECONDS, new ArrayBlockingQueue<Runnable>(1));
        assertNotNull(application.getExitingExecutorService(executor));
        assertTrue(executor.getThreadFactory().newThread(EMPTY_RUNNABLE).isDaemon());
      }
    
      @AndroidIncompatible // Mocking ExecutorService is forbidden there. TODO(b/218700094): Don't mock.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 28.1K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/MoreExecutorsTest.java

        ThreadPoolExecutor executor =
            new ThreadPoolExecutor(1, 2, 3, SECONDS, new ArrayBlockingQueue<Runnable>(1));
        assertNotNull(application.getExitingExecutorService(executor));
        assertTrue(executor.getThreadFactory().newThread(EMPTY_RUNNABLE).isDaemon());
      }
    
      @AndroidIncompatible // Mocking ExecutorService is forbidden there. TODO(b/218700094): Don't mock.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 28.1K bytes
    - Viewed (0)
  3. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:51:36 UTC 2024
    - 44.1K bytes
    - Viewed (0)
Back to top