ThreadUtils

class Object
trait Matchable
class Any

Type members

Classlikes

final implicit class ExecutionContextExt(ec: ExecutionContext) extends AnyVal
final class Scheduler(threadName: String, threadGroup: ThreadGroup)
final class ThreadPool(threadGroupName: String, threadFactory: ThreadFactory, logger: Logger)
final case class ThreadPool2(threadGroupName: String, threadPoolExecutor: ThreadPoolExecutor, logger: Logger)

Value members

Concrete methods

def newScheduler(threadName: String, threadGroup: ThreadGroup): Scheduler
def newThreadFactory(groupName: String): ThreadFactory
def newThreadPool(threadGroupName: String, logger: Logger): ThreadPool
def newThreadPoolExecutor(threads: Int, name: String): ThreadPoolExecutor
def newThreadPoolExecutor(threads: Int, threadFactory: ThreadFactory): ThreadPoolExecutor
def runOnShutdown(name: String)(proc: => Unit): Unit
def runOnShutdown[F[_]](name: String, task: F[Unit])(implicit F: Sync[F]): Unit
def unsafeRunWithTimeLimit[A](maxDur: Duration)(task: => A): Option[A]

Implicits

Implicits

final implicit def ExecutionContextExt(ec: ExecutionContext): ExecutionContextExt