object TestScheduler extends Serializable
- Source
- TestScheduler.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- TestScheduler
- Serializable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Type Members
- final 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.
- final case class Task(id: Long, task: Runnable, runsAt: FiniteDuration) extends Product with Serializable
Used internally by TestScheduler, represents a unit of work pending execution.
Value Members
- def apply(executionModel: ExecutionModel): TestScheduler
Builder for TestScheduler.
- def apply(): TestScheduler
Builder for TestScheduler.
- object Task extends Serializable
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.catnap exposes pure abstractions built on top of the Cats-Effect type classes:
monix.eval is for dealing with evaluation of results, thus exposing Task and Coeval.
monix.reactive exposes the
Observable
pattern:Observable
implementationsmonix.tail exposes Iterant for purely functional pull based streaming:
Batch
andBatchCursor
, the alternatives to Scala'sIterable
andIterator
respectively that we are using within Iterant's encodingYou can control evaluation with type you choose - be it Task, Coeval, cats.effect.IO or your own as long as you provide correct cats-effect or cats typeclass instance.