All Downloads are FREE. Search and download functionalities are using the official Maven repository.

coursier.util.PlatformSyncCompanion.scala Maven / Gradle / Ivy

The newest version!
package coursier.util

import java.util.concurrent.ExecutorService

import coursier.cache.internal.ThreadUtil

abstract class PlatformSyncCompanion {

  private[coursier] def fixedThreadPool(size: Int): ExecutorService =
    ThreadUtil.fixedThreadPool(size)

  private[coursier] def withFixedThreadPool[T](size: Int)(f: ExecutorService => T): T =
    ThreadUtil.withFixedThreadPool(size)(f)

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy