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

_2.12.0.0.1.source-code.DefaultResources.scala Maven / Gradle / Ivy

The newest version!
package masterleagueapi

import java.nio.channels.AsynchronousChannelGroup
import java.util.concurrent.Executors

import fs2.{ Scheduler, Strategy }

object DefaultResources {

  val ES = Executors.newCachedThreadPool(Strategy.daemonThreadFactory("AG"))

  implicit val S = Strategy.fromExecutor(ES)

  implicit val Sch = Scheduler.fromScheduledExecutorService(Executors.newScheduledThreadPool(4, Strategy.daemonThreadFactory("S")))

  implicit val AG = AsynchronousChannelGroup.withThreadPool(ES)

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy