object TrampolineExecutionContext
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- TrampolineExecutionContext
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Value Members
- def apply(underlying: ExecutionContext): TrampolineExecutionContext
Builds a TrampolineExecutionContext instance.
Builds a TrampolineExecutionContext instance.
- underlying
is the
ExecutionContextto which the it defers to in case asynchronous or time-delayed execution is needed
- val immediate: TrampolineExecutionContext
TrampolineExecutionContext instance that executes everything immediately, on the current thread.
TrampolineExecutionContext instance that executes everything immediately, on the current thread.
Implementation notes:
- if too many
blockingoperations are chained, at some point the implementation will trigger a stack overflow error reportErrorre-throws the exception in the hope that it will get caught and reported by the underlying thread-pool, because there's nowhere it could report that error safely (i.e.System.errmight be routed to/dev/nulland we'd have no way to override it)
- if too many

This is the API documentation for the Monix library.
Package Overview
monix.execution exposes lower level primitives for dealing with asynchronous execution:
Atomictypes, as alternative tojava.util.concurrent.atomicmonix.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
Observablepattern:Observableimplementationsmonix.tail exposes Iterant for purely functional pull based streaming:
BatchandBatchCursor, the alternatives to Scala'sIterableandIteratorrespectively 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.