Packages

case class State(lastID: Long, clock: FiniteDuration, tasks: SortedSet[Task], lastReportedError: Throwable) extends Product with Serializable

Used internally by TestScheduler, represents the internal state used for task scheduling and execution.

Source
TestScheduler.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. State
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new State(lastID: Long, clock: FiniteDuration, tasks: SortedSet[Task], lastReportedError: Throwable)

Value Members

  1. val clock: FiniteDuration
  2. def execute(runnable: Runnable): State

    Returns a new state with the runnable scheduled for execution.

  3. val lastID: Long
  4. val lastReportedError: Throwable
  5. def scheduleOnce(delay: FiniteDuration, r: Runnable, cancelTask: (Task) ⇒ Unit): (Cancelable, State)

    Returns a new state with a scheduled task included.

  6. val tasks: SortedSet[Task]