Trait/Object

monix.types

Deferrable

Related Docs: object Deferrable | package types

Permalink

trait Deferrable[F[_]] extends Monad[F] with Recoverable[F, Throwable] with Zippable[F]

A type-class describing computations that can be deferred.

Linear Supertypes
Zippable[F], Recoverable[F, Throwable], Monad[F], Applicative[F], Functor[F], AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Deferrable
  2. Zippable
  3. Recoverable
  4. Monad
  5. Applicative
  6. Functor
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def ap[A, B](fa: F[A])(ff: F[(A) ⇒ B]): F[B]

    Permalink
    Definition Classes
    Applicative
  2. abstract def defer[A](fa: ⇒ F[A]): F[A]

    Permalink

    Builds deferrable instances from the given factory.

  3. abstract def evalAlways[A](f: ⇒ A): F[A]

    Permalink

    Lifts a non-strict value into the deferrable context.

  4. abstract def evalOnce[A](f: ⇒ A): F[A]

    Permalink

    Lifts a non-strict value into the deferrable context, but memoizes it for subsequent evaluations.

  5. abstract def failed[A](fa: F[A]): F[Throwable]

    Permalink

    Turns the monadic context into one that exposes any errors that might have happened.

    Turns the monadic context into one that exposes any errors that might have happened.

    Definition Classes
    Recoverable
  6. abstract def flatMap[A, B](fa: F[A])(f: (A) ⇒ F[B]): F[B]

    Permalink
    Definition Classes
    Monad
  7. abstract def flatten[A](ffa: F[F[A]]): F[A]

    Permalink
    Definition Classes
    Monad
  8. abstract def map[A, B](fa: F[A])(f: (A) ⇒ B): F[B]

    Permalink
    Definition Classes
    Functor
  9. abstract def memoize[A](fa: F[A]): F[A]

    Permalink

    Given a deferrable, memoizes its result on the first evaluation, to be reused for subsequent evaluations.

  10. abstract def now[A](a: A): F[A]

    Permalink

    Lifts a strict value into the deferrable context.

    Lifts a strict value into the deferrable context.

    Alias for Applicative.pure.

  11. abstract def onErrorFallbackTo[A](fa: F[A], other: F[A]): F[A]

    Permalink

    Mirrors the source, but if an error happens, then fallback to other.

    Mirrors the source, but if an error happens, then fallback to other.

    Definition Classes
    Recoverable
  12. abstract def onErrorHandle[A](fa: F[A])(f: (Throwable) ⇒ A): F[A]

    Permalink

    Mirrors the source, but in case an error happens then use the given total function to fallback to a given element for certain errors.

    Mirrors the source, but in case an error happens then use the given total function to fallback to a given element for certain errors.

    See onErrorRecover for the alternative accepting a partial function.

    Definition Classes
    Recoverable
  13. abstract def onErrorHandleWith[A](fa: F[A])(f: (Throwable) ⇒ F[A]): F[A]

    Permalink

    Mirrors the source, until the source throws an error, after which it tries to fallback to the output of the given total function.

    Mirrors the source, until the source throws an error, after which it tries to fallback to the output of the given total function.

    See onErrorRecoverWith for the alternative accepting a partial function.

    Definition Classes
    Recoverable
  14. abstract def onErrorRecover[A](fa: F[A])(pf: PartialFunction[Throwable, A]): F[A]

    Permalink

    Mirrors the source, but in case an error happens then use the given partial function to fallback to a given element for certain errors.

    Mirrors the source, but in case an error happens then use the given partial function to fallback to a given element for certain errors.

    See onErrorHandle for the alternative accepting a total function.

    Definition Classes
    Recoverable
  15. abstract def onErrorRecoverWith[A](fa: F[A])(pf: PartialFunction[Throwable, F[A]]): F[A]

    Permalink

    Mirrors the source, until the source throws an error, after which it tries to fallback to the output of the given partial function.

    Mirrors the source, until the source throws an error, after which it tries to fallback to the output of the given partial function.

    See onErrorHandleWith for the alternative accepting a total function.

    Definition Classes
    Recoverable
  16. abstract def pure[A](a: A): F[A]

    Permalink
    Definition Classes
    Applicative
  17. abstract def raiseError[A](e: Throwable): F[A]

    Permalink

    Lifts an error into context.

    Lifts an error into context.

    Definition Classes
    Recoverable
  18. abstract def unit: F[Unit]

    Permalink

    The Unit lifted into the deferrable context.

  19. abstract def zipList[A](sources: Seq[F[A]]): F[Seq[A]]

    Permalink
    Definition Classes
    Zippable
  20. abstract def zipWith2[A1, A2, R](fa1: F[A1], fa2: F[A2])(f: (A1, A2) ⇒ R): F[R]

    Permalink
    Definition Classes
    Zippable

Concrete 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. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit

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

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  15. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    AnyRef → Any
  17. final def wait(): Unit

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

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

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

    Permalink
    Definition Classes
    Zippable
  21. def zip3[A1, A2, A3](fa1: F[A1], fa2: F[A2], fa3: F[A3]): F[(A1, A2, A3)]

    Permalink
    Definition Classes
    Zippable
  22. def zip4[A1, A2, A3, A4](fa1: F[A1], fa2: F[A2], fa3: F[A3], fa4: F[A4]): F[(A1, A2, A3, A4)]

    Permalink
    Definition Classes
    Zippable
  23. def zip5[A1, A2, A3, A4, A5](fa1: F[A1], fa2: F[A2], fa3: F[A3], fa4: F[A4], fa5: F[A5]): F[(A1, A2, A3, A4, A5)]

    Permalink
    Definition Classes
    Zippable
  24. def zip6[A1, A2, A3, A4, A5, A6](fa1: F[A1], fa2: F[A2], fa3: F[A3], fa4: F[A4], fa5: F[A5], fa6: F[A6]): F[(A1, A2, A3, A4, A5, A6)]

    Permalink
    Definition Classes
    Zippable
  25. def zipWith3[A1, A2, A3, R](fa1: F[A1], fa2: F[A2], fa3: F[A3])(f: (A1, A2, A3) ⇒ R): F[R]

    Permalink
    Definition Classes
    Zippable
  26. def zipWith4[A1, A2, A3, A4, R](fa1: F[A1], fa2: F[A2], fa3: F[A3], fa4: F[A4])(f: (A1, A2, A3, A4) ⇒ R): F[R]

    Permalink
    Definition Classes
    Zippable
  27. def zipWith5[A1, A2, A3, A4, A5, R](fa1: F[A1], fa2: F[A2], fa3: F[A3], fa4: F[A4], fa5: F[A5])(f: (A1, A2, A3, A4, A5) ⇒ R): F[R]

    Permalink
    Definition Classes
    Zippable
  28. def zipWith6[A1, A2, A3, A4, A5, A6, R](fa1: F[A1], fa2: F[A2], fa3: F[A3], fa4: F[A4], fa5: F[A5], fa6: F[A6])(f: (A1, A2, A3, A4, A5, A6) ⇒ R): F[R]

    Permalink
    Definition Classes
    Zippable

Inherited from Zippable[F]

Inherited from Recoverable[F, Throwable]

Inherited from Monad[F]

Inherited from Applicative[F]

Inherited from Functor[F]

Inherited from AnyRef

Inherited from Any

Ungrouped