Object/Class

monix.eval

Coeval

Related Docs: class Coeval | package eval

Permalink

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
Visibility
  1. Public
  2. All

Type Members

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

    Permalink

    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.

    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.

    It's the moral equivalent of scala.util.Try.

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

    Permalink

    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

    Permalink

    Constructs a lazy Coeval instance.

    Constructs a lazy Coeval instance.

    This type can be used for "lazy" values. In some sense it is equivalent to using a Function0 value.

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

    Permalink

    Constructs a lazy Coeval instance that gets evaluated only once.

    Constructs a lazy Coeval instance that gets evaluated only once.

    In some sense it is equivalent to using a lazy val. When caching is not required or desired, prefer EvalAlways or Now.

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

    Permalink

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

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

    Permalink

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

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. object Attempt extends Serializable

    Permalink
  5. object EvalOnce extends Serializable

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

    Permalink

    Promotes a non-strict value to a Coeval.

    Promotes a non-strict value to a Coeval.

    Alias of evalAlways.

  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def clone(): AnyRef

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

    Permalink

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

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

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

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

    Permalink

    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.

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

    Permalink

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

  14. def finalize(): Unit

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  19. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. final def notifyAll(): Unit

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

    Permalink

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

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

    Permalink

    Lifts a value into the coeval context.

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

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

    Permalink

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

  24. def sequence[A](sources: Seq[Coeval[A]]): Coeval[List[A]]

    Permalink

    Transforms a sequence of coevals into a coeval producing a list of gathered results.

    Transforms a sequence of coevals into a coeval producing a list of gathered results.

    For Coeval this has the same behavior as zipList.

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

    Permalink
    Definition Classes
    AnyRef
  26. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  27. implicit val typeClassInstances: TypeClassInstances

    Permalink

    Implicit type-class instances of Coeval.

  28. val unit: Coeval[Unit]

    Permalink

    A Coeval[Unit] provided for convenience.

  29. final def wait(): Unit

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

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

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

    Permalink

    Pairs two Coeval instances.

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

    Permalink

    Pairs three Coeval instances.

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

    Permalink

    Pairs four Coeval instances.

  35. 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)]

    Permalink

    Pairs five Coeval instances.

  36. 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)]

    Permalink

    Pairs six Coeval instances.

  37. def zipList[A](sources: Seq[Coeval[A]]): Coeval[List[A]]

    Permalink

    Zips together multiple Coeval instances.

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

    Permalink

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

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

    Permalink

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

  40. 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]

    Permalink

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

  41. 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]

    Permalink

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

  42. 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]

    Permalink

    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