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
- Alphabetic
- By Inheritance
Inherited
- State
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new State(lastID: Long, clock: FiniteDuration, tasks: SortedSet[Task], lastReportedError: Throwable)
Value Members
- val clock: FiniteDuration
-
def
execute(runnable: Runnable): State
Returns a new state with the runnable scheduled for execution.
- val lastID: Long
- val lastReportedError: Throwable
-
def
scheduleOnce(delay: FiniteDuration, r: Runnable, cancelTask: (Task) ⇒ Unit): (Cancelable, State)
Returns a new state with a scheduled task included.
- val tasks: SortedSet[Task]
This is the API documentation for the Monix library.
Package Overview
monix.execution exposes lower level primitives for dealing with asynchronous execution:
Atomic
types, as alternative tojava.util.concurrent.atomic
monix.eval is for dealing with evaluation of results, thus exposing Task and Coeval.
monix.reactive exposes the
Observable
pattern:Observable
implementationsmonix.types implements type-class shims, to be translated to type-classes provided by libraries such as Cats or Scalaz.
monix.cats is the optional integration with the Cats library, providing translations for the types described in
monix.types
.monix.scalaz is the optional integration with the Scalaz library, providing translations for the types described in
monix.types
.