Trait/Object

monix.types

Asynchronous

Related Docs: object Asynchronous | package types

Permalink

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
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 chooseFirstOf[A](seq: Seq[F[A]]): F[A]

    Permalink

    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]

    Permalink

    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]

    Permalink

    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]

    Permalink

    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]

    Permalink

    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]

    Permalink

    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]

    Permalink

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

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

    Permalink

    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]

    Permalink

    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]

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

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

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

    Permalink
    Definition Classes
    Functor
  15. 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.

    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]

    Permalink

    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]

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

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

    Permalink

    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]

    Permalink

    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]

    Permalink

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

  26. abstract def unit: F[Unit]

    Permalink

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

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