class TypeClassInstances extends Instance[Observable] with Instance[Observable] with Instance[Observable, Throwable] with Instance[Observable] with Instance[Observable] with Instance[Observable] with Instance[Observable]
- Alphabetic
- By Inheritance
- TypeClassInstances
- Instance
- Type
- MonadRec
- Instance
- Type
- Cobind
- Instance
- Instance
- SemigroupK
- Type
- MonoidK
- Type
- Instance
- Type
- MonadFilter
- Instance
- Type
- MonadError
- Instance
- Type
- Memoizable
- Instance
- Instance
- Instance
- Instance
- Instance
- Functor
- Applicative
- Monad
- MonadEval
- Type
- Suspendable
- Type
- Type
- Type
- Type
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new TypeClassInstances()
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
ap[A, B](ff: Observable[(A) ⇒ B])(fa: Observable[A]): Observable[B]
- Definition Classes
- TypeClassInstances → Applicative
- final def applicative: Applicative[Observable]
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
attempt[A](fa: Observable[A]): Observable[Either[Throwable, A]]
Handle errors by exposing them into
Either
values.Handle errors by exposing them into
Either
values.Returns
Right(value)
for successful values orLeft(error)
in case a failure happened.- Definition Classes
- MonadError
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
- final def cobind: Cobind[Observable]
-
def
coflatMap[A, B](fa: Observable[A])(f: (Observable[A]) ⇒ B): Observable[B]
- Definition Classes
- TypeClassInstances → Cobind
-
def
coflatten[A](fa: Observable[A]): Observable[Observable[A]]
- Definition Classes
- Cobind
-
def
combineK[A](x: Observable[A], y: Observable[A]): Observable[A]
Combine two F[A] values.
Combine two F[A] values.
- Definition Classes
- TypeClassInstances → SemigroupK
-
def
empty[A]: Observable[A]
Given a type A, create an "empty" F[A] value.
Given a type A, create an "empty" F[A] value.
- Definition Classes
- TypeClassInstances → MonoidK → MonadFilter
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
eval[A](a: ⇒ A): Observable[A]
- Definition Classes
- TypeClassInstances → MonadEval
-
def
evalOnce[A](a: ⇒ A): Observable[A]
- Definition Classes
- TypeClassInstances → Memoizable
-
def
filter[A](fa: Observable[A])(f: (A) ⇒ Boolean): Observable[A]
- Definition Classes
- TypeClassInstances → MonadFilter
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
flatMap[A, B](fa: Observable[A])(f: (A) ⇒ Observable[B]): Observable[B]
- Definition Classes
- TypeClassInstances → Monad
-
def
flatten[A](ffa: Observable[Observable[A]]): Observable[A]
- Definition Classes
- TypeClassInstances → Monad
- implicit final def functor: Functor[Observable]
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
map[A, B](fa: Observable[A])(f: (A) ⇒ B): Observable[B]
- Definition Classes
- TypeClassInstances → Functor
-
def
map2[A, B, Z](fa: Observable[A], fb: Observable[B])(f: (A, B) ⇒ Z): Observable[Z]
- Definition Classes
- TypeClassInstances → Applicative
- final def memoizable: Memoizable[Observable]
-
def
memoize[A](fa: Observable[A]): Observable[A]
- Definition Classes
- TypeClassInstances → Memoizable
- final def monad: Monad[Observable]
- final def monadError: MonadError[Observable, Throwable]
- final def monadEval: MonadEval[Observable]
- final def monadFilter: MonadFilter[Observable]
- final def monadRec: MonadRec[Observable]
- final def monoidK: MonoidK[Observable]
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
onErrorHandle[A](fa: Observable[A])(f: (Throwable) ⇒ A): Observable[A]
Handle any error, by mapping it to an
A
value.Handle any error, by mapping it to an
A
value.- Definition Classes
- TypeClassInstances → MonadError
-
def
onErrorHandleWith[A](fa: Observable[A])(f: (Throwable) ⇒ Observable[A]): Observable[A]
Handle any error, potentially recovering from it, by mapping it to an
F[A]
value.Handle any error, potentially recovering from it, by mapping it to an
F[A]
value.- Definition Classes
- TypeClassInstances → MonadError
-
def
onErrorRecover[A](fa: Observable[A])(pf: PartialFunction[Throwable, A]): Observable[A]
Recover from certain errors by mapping them to an
A
value.Recover from certain errors by mapping them to an
A
value.- Definition Classes
- TypeClassInstances → MonadError
-
def
onErrorRecoverWith[A](fa: Observable[A])(pf: PartialFunction[Throwable, Observable[A]]): Observable[A]
Recover from certain errors by mapping them to an
F[A]
value.Recover from certain errors by mapping them to an
F[A]
value.- Definition Classes
- TypeClassInstances → MonadError
-
def
pure[A](a: A): Observable[A]
- Definition Classes
- TypeClassInstances → Applicative
-
def
raiseError[A](e: Throwable): Observable[A]
Lift an error into the
F
context.Lift an error into the
F
context.- Definition Classes
- TypeClassInstances → MonadError
- final def semigroupK: SemigroupK[Observable]
-
def
suspend[A](fa: ⇒ Observable[A]): Observable[A]
- Definition Classes
- TypeClassInstances → Suspendable
- final def suspendable: Suspendable[Observable]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
tailRecM[A, B](a: A)(f: (A) ⇒ Observable[Either[A, B]]): Observable[B]
Keeps calling
f
until ascala.util.Right[B]
is returned.Keeps calling
f
until ascala.util.Right[B]
is returned.- Definition Classes
- TypeClassInstances → MonadRec
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
val
unit: Observable[Unit]
- Definition Classes
- TypeClassInstances → Applicative
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
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
.