object ZSaga
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- ZSaga
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Type Members
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def attempt[A](thunk: => A): ZSaga[A]
Suspends side effect execution within ZSaga
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- 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
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def fail(error: Throwable): ZSaga[Nothing]
Creates immediately failed ZSaga instance
- 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]]
- def foreach[A, B](in: Option[A])(f: (A) => ZSaga[B]): ZSaga[Option[B]]
- def foreachDiscard[A](in: Iterable[A])(f: (A) => ZSaga[Any]): ZSaga[Unit]
- def fromEither[A](value: Either[Throwable, A]): ZSaga[A]
Creates immediately completed ZSaga instance from scala's Either
- def fromTry[A](value: Try[A]): ZSaga[A]
Creates immediately completed ZSaga instance from scala's Try
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- 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
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- def succeed[A](value: A): ZSaga[A]
Creates immediately completed ZSaga instance which won't fail
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- val unit: ZSaga[Unit]
Creates a completed ZSaga with Unit result.
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- object Options extends Serializable
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)