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)
}