Class AutoCloseableExecutorService

java.lang.Object
java.util.concurrent.AbstractExecutorService
java.util.concurrent.ThreadPoolExecutor
nonapi.io.github.classgraph.concurrency.AutoCloseableExecutorService
All Implemented Interfaces:
AutoCloseable, Executor, ExecutorService

public class AutoCloseableExecutorService extends ThreadPoolExecutor implements AutoCloseable
A ThreadPoolExecutor that can be used in a try-with-resources block.
  • Field Details

  • Constructor Details

    • AutoCloseableExecutorService

      public AutoCloseableExecutorService(int numThreads)
      A ThreadPoolExecutor that can be used in a try-with-resources block.
      Parameters:
      numThreads - The number of threads to allocate.
  • Method Details