monix.eval

Coeval

object Coeval extends Serializable

Linear Supertypes
Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Coeval
  2. Serializable
  3. Serializable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. sealed abstract class Attempt[+A] extends Coeval[A]

    The Attempt represents a strict, already evaluated result of a Coeval that either resulted in success, wrapped in a Now, or in an error, wrapped in a Error.

  2. final case class Error(ex: Throwable) extends Attempt[Nothing] with Product with Serializable

    Constructs an eager Coeval instance for a result that represents an error.

  3. final case class EvalAlways[+A](f: () ⇒ A) extends Coeval[A] with Product with Serializable

    Constructs a lazy Coeval instance.

  4. final class EvalOnce[+A] extends Coeval[A] with () ⇒ A

    Constructs a lazy Coeval instance that gets evaluated only once.

  5. final case class Now[+A](value: A) extends Attempt[A] with Product with Serializable

    Constructs an eager Coeval instance from a strict value that's already known.

  6. class TypeClassInstances extends Evaluable[Coeval] with Bimonad[Coeval]

    Groups the implementation for the type-classes defined in monix.types.

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. object Attempt extends Serializable

  7. object EvalOnce extends Serializable

  8. implicit def anyToCoevalNow[A](value: A): Coeval[A]

    Implicit conversion from anything to Coeval.Now.

    Implicit conversion from anything to Coeval.Now.

    WARNING: the given value is strict so any expression implicitly converted into a Coeval will have been evaluated already.

  9. def apply[A](f: ⇒ A): Coeval[A]

    Promotes a non-strict value to a Coeval.

    Promotes a non-strict value to a Coeval.

    Alias of evalAlways.

  10. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  11. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. def defer[A](coeval: ⇒ Coeval[A]): Coeval[A]

    Promote a non-strict value representing a Coeval to a Coeval of the same type.

  13. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  14. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  15. def evalAlways[A](f: ⇒ A): Coeval[A]

    Promote a non-strict value to an Coeval, catching exceptions in the process.

    Promote a non-strict value to an Coeval, catching exceptions in the process.

    Note that since Coeval is not memoized, this will recompute the value each time the Coeval is executed.

  16. def evalOnce[A](f: ⇒ A): Coeval[A]

    Promote a non-strict value to a Coeval that is memoized on the first evaluation, the result being then available on subsequent evaluations.

  17. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  18. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  19. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  20. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  21. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  22. final def notify(): Unit

    Definition Classes
    AnyRef
  23. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  24. def now[A](a: A): Coeval[A]

    Returns an Coeval that on execution is always successful, emitting the given strict value.

  25. def pure[A](a: A): Coeval[A]

    Lifts a value into the coeval context.

    Lifts a value into the coeval context. Alias for now.

  26. def raiseError[A](ex: Throwable): Coeval[A]

    Returns an Coeval that on execution is always finishing in error emitting the specified exception.

  27. def sequence[A, M[X] <: TraversableOnce[X]](sources: M[Coeval[A]])(implicit cbf: CanBuildFrom[M[Coeval[A]], A, M[A]]): Coeval[M[A]]

    Transforms a TraversableOnce of coevals into a coeval producing the same collection of gathered results.

    Transforms a TraversableOnce of coevals into a coeval producing the same collection of gathered results.

    It's a simple version of traverse.

  28. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  29. def toString(): String

    Definition Classes
    AnyRef → Any
  30. def traverse[A, B, M[X] <: TraversableOnce[X]](sources: M[A])(f: (A) ⇒ Coeval[B])(implicit cbf: CanBuildFrom[M[A], B, M[B]]): Coeval[M[B]]

    Transforms a TraversableOnce[A] into a coeval of the same collection using the provided function A => Coeval[B].

    Transforms a TraversableOnce[A] into a coeval of the same collection using the provided function A => Coeval[B].

    It's a generalized version of sequence.

  31. implicit val typeClassInstances: TypeClassInstances

    Implicit type-class instances of Coeval.

  32. val unit: Coeval[Unit]

    A Coeval[Unit] provided for convenience.

  33. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. def zip2[A1, A2, R](fa1: Coeval[A1], fa2: Coeval[A2]): Coeval[(A1, A2)]

    Pairs two Coeval instances.

  37. def zip3[A1, A2, A3](fa1: Coeval[A1], fa2: Coeval[A2], fa3: Coeval[A3]): Coeval[(A1, A2, A3)]

    Pairs three Coeval instances.

  38. def zip4[A1, A2, A3, A4](fa1: Coeval[A1], fa2: Coeval[A2], fa3: Coeval[A3], fa4: Coeval[A4]): Coeval[(A1, A2, A3, A4)]

    Pairs four Coeval instances.

  39. def zip5[A1, A2, A3, A4, A5](fa1: Coeval[A1], fa2: Coeval[A2], fa3: Coeval[A3], fa4: Coeval[A4], fa5: Coeval[A5]): Coeval[(A1, A2, A3, A4, A5)]

    Pairs five Coeval instances.

  40. def zip6[A1, A2, A3, A4, A5, A6](fa1: Coeval[A1], fa2: Coeval[A2], fa3: Coeval[A3], fa4: Coeval[A4], fa5: Coeval[A5], fa6: Coeval[A6]): Coeval[(A1, A2, A3, A4, A5, A6)]

    Pairs six Coeval instances.

  41. def zipList[A](sources: Coeval[A]*): Coeval[List[A]]

    Zips together multiple Coeval instances.

  42. def zipWith2[A1, A2, R](fa1: Coeval[A1], fa2: Coeval[A2])(f: (A1, A2) ⇒ R): Coeval[R]

    Pairs two Coeval instances, creating a new instance that will apply the given mapping function to the resulting pair.

  43. def zipWith3[A1, A2, A3, R](fa1: Coeval[A1], fa2: Coeval[A2], fa3: Coeval[A3])(f: (A1, A2, A3) ⇒ R): Coeval[R]

    Pairs three Coeval instances, applying the given mapping function to the result.

  44. def zipWith4[A1, A2, A3, A4, R](fa1: Coeval[A1], fa2: Coeval[A2], fa3: Coeval[A3], fa4: Coeval[A4])(f: (A1, A2, A3, A4) ⇒ R): Coeval[R]

    Pairs four Coeval instances, applying the given mapping function to the result.

  45. def zipWith5[A1, A2, A3, A4, A5, R](fa1: Coeval[A1], fa2: Coeval[A2], fa3: Coeval[A3], fa4: Coeval[A4], fa5: Coeval[A5])(f: (A1, A2, A3, A4, A5) ⇒ R): Coeval[R]

    Pairs five Coeval instances, applying the given mapping function to the result.

  46. def zipWith6[A1, A2, A3, A4, A5, A6, R](fa1: Coeval[A1], fa2: Coeval[A2], fa3: Coeval[A3], fa4: Coeval[A4], fa5: Coeval[A5], fa6: Coeval[A6])(f: (A1, A2, A3, A4, A5, A6) ⇒ R): Coeval[R]

    Pairs six Coeval instances, applying the given mapping function to the result.

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped