ExecutionContexts

mill.exec.ExecutionContexts

Attributes

Source
ExecutionContexts.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

object RunNow extends Impl

Execution context that runs code immediately when scheduled, without spawning a separate thread or thread-pool. Used to turn parallel-async Future code into nice single-threaded code without needing to rewrite it

Execution context that runs code immediately when scheduled, without spawning a separate thread or thread-pool. Used to turn parallel-async Future code into nice single-threaded code without needing to rewrite it

Attributes

Source
ExecutionContexts.scala
Supertypes
trait Impl
trait AutoCloseable
trait ExecutionContext
trait Api
class Object
trait Matchable
class Any
Show all
Self type
RunNow.type
class ThreadPool(executor: ThreadPoolExecutor) extends Impl

A simple thread-pool-based ExecutionContext with configurable thread count and AutoCloseable support

A simple thread-pool-based ExecutionContext with configurable thread count and AutoCloseable support

Attributes

Source
ExecutionContexts.scala
Supertypes
trait Impl
trait AutoCloseable
trait ExecutionContext
trait Api
class Object
trait Matchable
class Any
Show all

Value members

Concrete methods

def createExecutor(threadCount: Int): ThreadPoolExecutor

Attributes

Source
ExecutionContexts.scala