SerialExecutionContext

class SerialExecutionContext(parent: ExecutionContext) extends ExecutionContext

Serialize execution of work, ensuring that no passed work is executed in parallel.

Tasks are executed sequentially, in the order they are offered. Each task has a happens-before relationship with subsequent tasks, meaning mutations performed in a task are observed by all sequent tasks.

Value Params
parent

ExecutionContext with which to perform the work, which may consist of many tasks queued in the SerialExecutionContext.

trait ExecutionContext
class Object
trait Matchable
class Any

Value members

Concrete methods

override def execute(runnable: Runnable): Unit
Definition Classes
ExecutionContext
override def reportFailure(cause: Throwable): Unit
Definition Classes
ExecutionContext

Deprecated and Inherited methods

@deprecated(message = "preparation of ExecutionContexts will be removed", since = "2.12.0")
def prepare(): ExecutionContext
Deprecated
[Since version 2.12.0] preparation of ExecutionContexts will be removed
Inherited from
ExecutionContext