package execution
- Alphabetic
- Public
- All
Type Members
-
sealed abstract
class
Ack
extends Future[Ack] with Serializable
Represents an acknowledgement of processing that a consumer sends back upstream.
Represents an acknowledgement of processing that a consumer sends back upstream. Useful to implement back-pressure.
-
trait
Cancelable
extends Serializable
Represents a one-time idempotent action that can be used to cancel async computations, or to release resources that active data sources are holding.
Represents a one-time idempotent action that can be used to cancel async computations, or to release resources that active data sources are holding.
It is equivalent to
java.io.Closeable
, but without the I/O focus, or toIDisposable
in Microsoft .NET, or toakka.actor.Cancellable
. -
trait
CancelableFuture
[+T] extends Future[T] with Cancelable
Represents an asynchronous computation that can be canceled as long as it isn't complete.
-
class
Macros
extends InlineMacros with HygieneUtilMacros
Various implementations for AckExtensions and Scheduler.
Various implementations for AckExtensions and Scheduler.
- Annotations
- @bundle()
-
trait
Scheduler
extends ExecutionContext with UncaughtExceptionReporter
A Scheduler is an
scala.concurrent.ExecutionContext
that additionally can schedule the execution of units of work to run with a delay or periodically.A Scheduler is an
scala.concurrent.ExecutionContext
that additionally can schedule the execution of units of work to run with a delay or periodically.- Annotations
- @implicitNotFound( ... )
-
trait
UncaughtExceptionReporter
extends Serializable
An exception reporter is a function that logs an uncaught error.
An exception reporter is a function that logs an uncaught error.
Usually taken as an implicit when executing computations that could fail, but that must not blow up the call-stack, like asynchronous tasks.
A default implicit is provided that simply logs the error on STDERR.
- Annotations
- @implicitNotFound( ... )
Value Members
- object Ack extends Serializable
- object Cancelable extends Serializable
- object CancelableFuture extends Serializable
-
object
FutureUtils
Utilities for Scala's standard
concurrent.Future
. - object Scheduler extends SchedulerCompanionImpl with Serializable
- object UncaughtExceptionReporter 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.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
.