class TypeClassInstances extends Instance[Coeval] with Instance[Coeval] with Instance[Coeval, Throwable] with Instance[Coeval] with Instance[Coeval]
Groups the implementation for the type-classes defined in monix.types.
- Source
- Coeval.scala
- Alphabetic
- By Inheritance
- TypeClassInstances
- Instance
- Type
- MonadRec
- Instance
- Instance
- Cobind
- Type
- Comonad
- Type
- 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: Coeval[(A) ⇒ B])(fa: Coeval[A]): Coeval[B]
- Definition Classes
- TypeClassInstances → Applicative
- final def applicative: Applicative[Coeval]
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
attempt[A](fa: Coeval[A]): Coeval[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
- TypeClassInstances → MonadError
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
- final def cobind: Cobind[Coeval]
-
def
coflatMap[A, B](fa: Coeval[A])(f: (Coeval[A]) ⇒ B): Coeval[B]
- Definition Classes
- TypeClassInstances → Cobind
-
def
coflatten[A](fa: Coeval[A]): Coeval[Coeval[A]]
- Definition Classes
- Cobind
- final def comonad: Comonad[Coeval]
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
eval[A](a: ⇒ A): Coeval[A]
- Definition Classes
- TypeClassInstances → MonadEval
-
def
evalOnce[A](a: ⇒ A): Coeval[A]
- Definition Classes
- TypeClassInstances → Memoizable
-
def
extract[A](x: Coeval[A]): A
- Definition Classes
- TypeClassInstances → Comonad
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
flatMap[A, B](fa: Coeval[A])(f: (A) ⇒ Coeval[B]): Coeval[B]
- Definition Classes
- TypeClassInstances → Monad
-
def
flatten[A](ffa: Coeval[Coeval[A]]): Coeval[A]
- Definition Classes
- TypeClassInstances → Monad
- implicit final def functor: Functor[Coeval]
-
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: Coeval[A])(f: (A) ⇒ B): Coeval[B]
- Definition Classes
- TypeClassInstances → Functor
-
def
map2[A, B, Z](fa: Coeval[A], fb: Coeval[B])(f: (A, B) ⇒ Z): Coeval[Z]
- Definition Classes
- TypeClassInstances → Applicative
- final def memoizable: Memoizable[Coeval]
-
def
memoize[A](fa: Coeval[A]): Coeval[A]
- Definition Classes
- TypeClassInstances → Memoizable
- final def monad: Monad[Coeval]
- final def monadError: MonadError[Coeval, Throwable]
- final def monadEval: MonadEval[Coeval]
- final def monadRec: MonadRec[Coeval]
-
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: Coeval[A])(f: (Throwable) ⇒ A): Coeval[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: Coeval[A])(f: (Throwable) ⇒ Coeval[A]): Coeval[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: Coeval[A])(pf: PartialFunction[Throwable, A]): Coeval[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: Coeval[A])(pf: PartialFunction[Throwable, Coeval[A]]): Coeval[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): Coeval[A]
- Definition Classes
- TypeClassInstances → Applicative
-
def
raiseError[A](e: Throwable): Coeval[A]
Lift an error into the
F
context.Lift an error into the
F
context.- Definition Classes
- TypeClassInstances → MonadError
-
def
suspend[A](fa: ⇒ Coeval[A]): Coeval[A]
- Definition Classes
- TypeClassInstances → Suspendable
- final def suspendable: Suspendable[Coeval]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
tailRecM[A, B](a: A)(f: (A) ⇒ Coeval[Either[A, B]]): Coeval[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: Coeval[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
.