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

com.malliina.concurrent.ExecutionContexts.scala Maven / Gradle / Ivy

package com.malliina.concurrent

import java.util.concurrent.Executors

import scala.concurrent.ExecutionContext

/** For orderly shutdowns I think it's good to shutdown this instance explicitly on app termination.
  */
object ExecutionContexts {
  implicit val cached: ExecutionContext =
    ExecutionContext.fromExecutorService(Executors.newCachedThreadPool())
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy