object ZSaga

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ZSaga
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. final case class Options(parallelCompensation: Boolean = false, continueWithError: Boolean = false) extends Product with Serializable

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def attempt[A](thunk: => A): ZSaga[A]

    Suspends side effect execution within ZSaga

    Suspends side effect execution within ZSaga

    A

    value type

    thunk

    effectful side effect (which may throw exceptions)

    returns

    suspended ZSaga

  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  7. def compensation(compensate: => Unit): ZSaga[Unit]

    Adds a compensation to the current saga

    Adds a compensation to the current saga

    compensate

    the compensation which will run in case the saga fails

  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  10. def fail(error: Throwable): ZSaga[Nothing]

    Creates immediately failed ZSaga instance

    Creates immediately failed ZSaga instance

    error

    error value

    returns

    failed ZSaga

  11. def foreach[A, B, Collection[+Element] <: Iterable[Element]](in: Collection[A])(f: (A) => ZSaga[B])(implicit bf: zio.BuildFrom[Collection[A], B, Collection[B]]): ZSaga[Collection[B]]
  12. def foreach[A, B](in: Option[A])(f: (A) => ZSaga[B]): ZSaga[Option[B]]
  13. def foreachDiscard[A](in: Iterable[A])(f: (A) => ZSaga[Any]): ZSaga[Unit]
  14. def fromEither[A](value: Either[Throwable, A]): ZSaga[A]

    Creates immediately completed ZSaga instance from scala's Either

    Creates immediately completed ZSaga instance from scala's Either

    value

    scala Either value

    returns

    failed ZSaga

  15. def fromTry[A](value: Try[A]): ZSaga[A]

    Creates immediately completed ZSaga instance from scala's Try

    Creates immediately completed ZSaga instance from scala's Try

    value

    scala Try value

    returns

    failed ZSaga

  16. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  17. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  18. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  19. def make[A](exec: => A)(compensate: => Unit): ZSaga[A]

    Creates a saga which will run a compensation if the main action fails.

    Creates a saga which will run a compensation if the main action fails.

    A

    action result

    exec

    the main action

    compensate

    the compensation which will run in case the saga fails

  20. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  21. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  22. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  23. def succeed[A](value: A): ZSaga[A]

    Creates immediately completed ZSaga instance which won't fail

    Creates immediately completed ZSaga instance which won't fail

    A

    value type

    value

    result value

    returns

    value wrapped into ZSaga

  24. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  25. def toString(): String
    Definition Classes
    AnyRef → Any
  26. val unit: ZSaga[Unit]

    Creates a completed ZSaga with Unit result.

  27. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  28. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  29. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  30. object Options extends Serializable

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from AnyRef

Inherited from Any

Ungrouped