object Cancelable extends Serializable
- Source
- Cancelable.scala
- Alphabetic
- By Inheritance
- Cancelable
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
Value Members
-
def
apply(callback: () ⇒ Unit): Cancelable
Builds a Cancelable that executes the given
callback
when calling cancel. -
def
apply(): Cancelable
Builds a Cancelable.
-
def
cancelAll(seq: Iterable[Cancelable]): Unit
Given a collection of cancelables, cancel them all.
Given a collection of cancelables, cancel them all.
This function collects non-fatal exceptions and throws them all at the end as a CompositeException, thus making sure that all references get canceled.
-
def
collection(refs: Iterable[Cancelable]): Cancelable
Builds a Cancelable reference from a sequence, cancelling everything on
cancel
. -
val
empty: Cancelable
Returns a dummy Cancelable that doesn't do anything.
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
.