ExecutorServices

Companion
class
trait Product
trait Mirror
class Object
trait Matchable
class Any

Type members

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Inherited from
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Inherited from
Mirror

Value members

Concrete methods

def create(implicit es: ExecutorService, s: ScheduledExecutorService): ExecutorServices
def createExecutionContext(executorService: ExecutorService, logger: String => Unit): ExecutionContext
def executor(threadsNb: Int): ExecutorService
def fromExecutionContext(ec: => ExecutionContext): ExecutorServices

create an ExecutionEnv from an execution context only

create an ExecutionEnv from an execution context only

WARNING!!! This method create a brand new scheduledExecutorService which will be used if you use the ExecutorServices to timeout an Async effect

def fromExecutorService(es: => ExecutorService): ExecutorServices
def fromExecutorServices(es: => ExecutorService, s: => ScheduledExecutorService): ExecutorServices

create an ExecutorServices from Scala global execution context

create an ExecutorServices from Scala global execution context

def scheduledExecutor(scheduledThreadsNb: Int): ScheduledExecutorService

create a Scheduler from Scala global execution context

create a Scheduler from Scala global execution context

def schedulerFromScheduledExecutorService(s: ScheduledExecutorService): Scheduler

Concrete fields

lazy val threadsNb: Int