monix.types

Asynchronous

trait Asynchronous[F[_]] extends Deferrable[F]

Type-class for monadic contexts whose evaluation can be delayed.

Note that this includes asynchronous streams.

Linear Supertypes
Deferrable[F], Zippable[F], Recoverable[F, Throwable], Monad[F], Applicative[F], Functor[F], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Asynchronous
  2. Deferrable
  3. Zippable
  4. Recoverable
  5. Monad
  6. Applicative
  7. Functor
  8. AnyRef
  9. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

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

    Definition Classes
    Applicative
  2. abstract def chooseFirstOf[A](seq: Seq[F[A]]): F[A]

    Given a list of non-deterministic structures, mirrors the first that manages to emit an element or that completes and ignore or cancel the rest.

  3. abstract def defer[A](fa: ⇒ F[A]): F[A]

    Builds deferrable instances from the given factory.

    Builds deferrable instances from the given factory.

    Definition Classes
    Deferrable
  4. abstract def delayExecution[A](fa: F[A], timespan: FiniteDuration): F[A]

    Delays the execution of the instance and consequently the execution of any side-effects, by the specified timespan.

  5. abstract def delayExecutionWith[A, B](fa: F[A], trigger: F[B]): F[A]

    Delays the execution of the instance and consequently the execution of any side-effects, until the given trigger emits an element or completes.

  6. abstract def delayResult[A](fa: F[A], timespan: FiniteDuration): F[A]

    Executes the source immediately, but delays the signaling by the specified timespan.

    Executes the source immediately, but delays the signaling by the specified timespan. In case F is a sequence, then the delay will be applied to each element, but not to completion or the signaling of an error.

  7. abstract def delayResultBySelector[A, B](fa: F[A])(selector: (A) ⇒ F[B]): F[A]

    Executes the source immediately, but delays the signaling until the specified selector emits an element or completes.

    Executes the source immediately, but delays the signaling until the specified selector emits an element or completes. In case F is a sequence, then the delay will be applied to each element, but not to completion or the signaling of an error.

  8. abstract def delayedEval[A](delay: FiniteDuration, a: ⇒ A): F[A]

    Builds an instance by evaluating the given expression with a delay applied.

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

    Lifts a non-strict value into the deferrable context.

    Lifts a non-strict value into the deferrable context.

    Definition Classes
    Deferrable
  10. abstract def evalOnce[A](f: ⇒ A): F[A]

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

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

    Definition Classes
    Deferrable
  11. abstract def failed[A](fa: F[A]): F[Throwable]

    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
  12. abstract def flatMap[A, B](fa: F[A])(f: (A) ⇒ F[B]): F[B]

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

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

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

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

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

    Definition Classes
    Deferrable
  16. abstract def now[A](a: A): F[A]

    Lifts a strict value into the deferrable context.

    Lifts a strict value into the deferrable context.

    Alias for Applicative.pure.

    Definition Classes
    Deferrable
  17. abstract def onErrorFallbackTo[A](fa: F[A], other: F[A]): F[A]

    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
  18. abstract def onErrorHandle[A](fa: F[A])(f: (Throwable) ⇒ A): F[A]

    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
  19. abstract def onErrorHandleWith[A](fa: F[A])(f: (Throwable) ⇒ F[A]): F[A]

    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
  20. abstract def onErrorRecover[A](fa: F[A])(pf: PartialFunction[Throwable, A]): F[A]

    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
  21. abstract def onErrorRecoverWith[A](fa: F[A])(pf: PartialFunction[Throwable, F[A]]): F[A]

    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
  22. abstract def pure[A](a: A): F[A]

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

    Lifts an error into context.

    Lifts an error into context.

    Definition Classes
    Recoverable
  24. abstract def timeout[A](fa: F[A], timespan: FiniteDuration): F[A]

    Trigger a TimeoutException after the given timespan has passed without the source emitting anything.

  25. abstract def timeoutTo[A](fa: F[A], timespan: FiniteDuration, backup: F[A]): F[A]

    In case the given timespan passes without the source emitting any signals, then switch to evaluating the backup.

  26. abstract def unit: F[Unit]

    The Unit lifted into the deferrable context.

    The Unit lifted into the deferrable context.

    Definition Classes
    Deferrable
  27. abstract def zipList[A](sources: Seq[F[A]]): F[Seq[A]]

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

    Definition Classes
    Zippable

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

    Definition Classes
    Any
  7. def clone(): AnyRef

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

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

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

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

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

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

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

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

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

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

    Definition Classes
    AnyRef
  18. def toString(): String

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

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

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

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

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

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

    Definition Classes
    Zippable
  25. 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)]

    Definition Classes
    Zippable
  26. 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)]

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

    Definition Classes
    Zippable
  28. 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]

    Definition Classes
    Zippable
  29. 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]

    Definition Classes
    Zippable
  30. 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]

    Definition Classes
    Zippable

Inherited from Deferrable[F]

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