
org.http4s.client.impl.DefaultExecutor.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of http4s-client_2.11 Show documentation
Show all versions of http4s-client_2.11 Show documentation
Base library for building http4s clients
package org.http4s.client.impl
import java.util.concurrent.ExecutorService
import org.http4s.util.threads._
private[client] object DefaultExecutor {
/** create a new default executor */
def newClientDefaultExecutorService(name: String): ExecutorService =
newDefaultFixedThreadPool(
(Runtime.getRuntime.availableProcessors * 1.5).ceil.toInt,
threadFactory(i => s"http4s-$name-$i"))
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy