Class

monix.execution.Ack

AckExtensions

Related Doc: package Ack

Permalink

implicit final class AckExtensions[Self <: Future[Ack]] extends AnyVal

Helpers for dealing with synchronous Future[Ack] results, powered by macros.

Source
Ack.scala
Linear Supertypes
AnyVal, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AckExtensions
  2. AnyVal
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new AckExtensions(source: Self)

    Permalink

Value Members

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

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

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

    Permalink
    Definition Classes
    Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def getClass(): Class[_ <: AnyVal]

    Permalink
    Definition Classes
    AnyVal → Any
  6. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  7. macro def isSynchronous: Boolean

    Permalink

    Returns true if self is a direct reference to Continue or Stop, false otherwise.

  8. val source: Self

    Permalink
  9. macro def syncFlatMap(f: (Ack) ⇒ Future[Ack])(implicit s: Scheduler): Future[Ack]

    Permalink

    Given a mapping function, returns a new future reference that is the result of a flatMap operation applied to the source.

    Given a mapping function, returns a new future reference that is the result of a flatMap operation applied to the source.

    Execution will happen synchronously if the source value is a direct reference to Continue or Stop, or asynchronously otherwise.

  10. macro def syncMap(f: (Ack) ⇒ Ack)(implicit s: Scheduler): Future[Ack]

    Permalink

    Given a mapping function, returns a new future reference that is the result of a map operation applied to the source.

    Given a mapping function, returns a new future reference that is the result of a map operation applied to the source.

    Execution will happen synchronously if the source value is a direct reference to Continue or Stop, or asynchronously otherwise.

  11. macro def syncOnComplete(f: (Try[Ack]) ⇒ Unit)(implicit s: Scheduler): Unit

    Permalink

    When the source future is completed, either through an exception, or a value, apply the provided function.

    When the source future is completed, either through an exception, or a value, apply the provided function.

    Execution will happen synchronously if the source value is a direct reference to Continue or Stop, or asynchronously otherwise.

  12. macro def syncOnContinue(callback: ⇒ Unit)(implicit s: Scheduler): Self

    Permalink

    Executes the given callback on Continue.

    Executes the given callback on Continue.

    Execution will happen synchronously if the source value is a direct reference to Continue or Stop, or asynchronously otherwise.

  13. def syncOnContinueFollow[T](p: Promise[T], value: T)(implicit s: Scheduler): Self

    Permalink

    If the source completes with a Stop, then complete the given promise with a value.

  14. def syncOnStopFollow[T](p: Promise[T], value: T)(implicit s: Scheduler): Self

    Permalink

    If the source completes with a Stop, then complete the given promise with a value.

  15. macro def syncOnStopOrFailure(callback: ⇒ Unit)(implicit s: Scheduler): Self

    Permalink

    Executes the given callback on Stop or on Failure(ex).

    Executes the given callback on Stop or on Failure(ex).

    Execution will happen synchronously if the source value is a direct reference to Continue or Stop, or asynchronously otherwise.

  16. def syncTryFlatten(implicit r: UncaughtExceptionReporter): Future[Ack]

    Permalink

    Tries converting an already completed Future[Ack] into a direct reference to Continue or Stop.

    Tries converting an already completed Future[Ack] into a direct reference to Continue or Stop. Useful for collapsing async pipelines.

  17. def toString(): String

    Permalink
    Definition Classes
    Any

Inherited from AnyVal

Inherited from Any

Ungrouped