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

org.http4s.client.impl.DefaultExecutor.scala Maven / Gradle / Ivy

There is a newer version: 0.21.0-M1
Show newest version
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