Class/Object

zio

Exit

Related Docs: object Exit | package zio

Permalink

sealed abstract class Exit[+E, +A] extends Product with Serializable

An Exit[E, A] describes the result of executing an IO value. The result is either succeeded with a value A, or failed with a Cause[E].

Self Type
Exit[E, A]
Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Exit
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def canEqual(that: Any): Boolean

    Permalink
    Definition Classes
    Equals
  2. abstract def productArity: Int

    Permalink
    Definition Classes
    Product
  3. abstract def productElement(n: Int): Any

    Permalink
    Definition Classes
    Product

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 &>[E1 >: E, B](that: Exit[E1, B]): Exit[E1, B]

    Permalink

    Parallelly zips the this result with the specified result discarding the first element of the tuple or else returns the failed Cause[E1]

  4. final def *>[E1 >: E, B](that: Exit[E1, B]): Exit[E1, B]

    Permalink

    Sequentially zips the this result with the specified result discarding the first element of the tuple or else returns the failed Cause[E1]

  5. final def <&[E1 >: E, B](that: Exit[E1, B]): Exit[E1, A]

    Permalink

    Parallelly zips the this result with the specified result discarding the second element of the tuple or else returns the failed Cause[E1]

  6. final def <&>[E1 >: E, B](that: Exit[E1, B])(implicit zippable: Zippable[A, B]): Exit[E1, Out]

    Permalink

    Parallelly zips the this result with the specified result or else returns the failed Cause[E1]

  7. final def <*[E1 >: E, B](that: Exit[E1, B]): Exit[E1, A]

    Permalink

    Sequentially zips the this result with the specified result discarding the second element of the tuple or else returns the failed Cause[E1]

  8. final def <*>[E1 >: E, B](that: Exit[E1, B])(implicit zippable: Zippable[A, B]): Exit[E1, Out]

    Permalink

    Sequentially zips the this result with the specified result or else returns the failed Cause[E1]

  9. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  10. final def as[B](b: B): Exit[E, B]

    Permalink

    Replaces the success value with the one provided.

  11. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  12. final def causeOption: Option[Cause[E]]

    Permalink

    Returns an option of the cause of failure.

  13. def clone(): AnyRef

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  16. final def exists(p: (A) ⇒ Boolean): Boolean

    Permalink
  17. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  18. final def flatMap[E1 >: E, A1](f: (A) ⇒ Exit[E1, A1]): Exit[E1, A1]

    Permalink

    Flat maps over the value type.

  19. final def flatMapZIO[E1 >: E, R, E2, A1](f: (A) ⇒ ZIO[R, E2, Exit[E1, A1]]): ZIO[R, E2, Exit[E1, A1]]

    Permalink

    Flat maps over the value type.

  20. final def flatten[E1 >: E, B](implicit ev: <:<[A, Exit[E1, B]]): Exit[E1, B]

    Permalink

    Flattens an Exit of an Exit into a single Exit value.

  21. final def fold[Z](failed: (Cause[E]) ⇒ Z, completed: (A) ⇒ Z): Z

    Permalink

    Folds over the value or cause.

  22. final def foldZIO[R, E1, B](failed: (Cause[E]) ⇒ ZIO[R, E1, B], completed: (A) ⇒ ZIO[R, E1, B])(implicit trace: ZTraceElement): ZIO[R, E1, B]

    Permalink

    Sequentially zips the this result with the specified result or else returns the failed Cause[E1]

  23. final def foreach[R, E1 >: E, B](f: (A) ⇒ ZIO[R, E1, B])(implicit trace: ZTraceElement): ZIO[R, Nothing, Exit[E1, B]]

    Permalink

    Applies the function f to the successful result of the Exit and returns the result in a new Exit.

  24. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  25. final def getOrElse[A1 >: A](orElse: (Cause[E]) ⇒ A1): A1

    Permalink

    Retrieves the A if succeeded, or else returns the specified default A.

  26. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  27. final def isFailure: Boolean

    Permalink

    Determines if the result is a failure.

  28. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  29. final def isInterrupted: Boolean

    Permalink

    Determines if the result is interrupted.

  30. final def isSuccess: Boolean

    Permalink

    Determines if the result is a success.

  31. final def map[A1](f: (A) ⇒ A1): Exit[E, A1]

    Permalink

    Maps over the value type.

  32. final def mapBoth[E1, A1](f: (E) ⇒ E1, g: (A) ⇒ A1): Exit[E1, A1]

    Permalink

    Maps over both the error and value type.

  33. final def mapError[E1](f: (E) ⇒ E1): Exit[E1, A]

    Permalink

    Maps over the error type.

  34. final def mapErrorCause[E1](f: (Cause[E]) ⇒ Cause[E1]): Exit[E1, A]

    Permalink

    Maps over the cause type.

  35. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  36. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  37. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  38. final def orElseFail[E1](e1: ⇒ E1): Exit[E1, A]

    Permalink

    Replaces the error value with the one provided.

  39. def productIterator: Iterator[Any]

    Permalink
    Definition Classes
    Product
  40. def productPrefix: String

    Permalink
    Definition Classes
    Product
  41. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  42. final def toEither: Either[Throwable, A]

    Permalink

    Converts the Exit to an Either[Throwable, A], by wrapping the cause in FiberFailure (if the result is failed).

  43. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  44. final def toZIO(implicit trace: ZTraceElement): IO[E, A]

    Permalink

    Converts the Exit to a ZIO effect.

  45. final def unit: Exit[E, Unit]

    Permalink

    Discards the value.

  46. final def untraced: Exit[E, A]

    Permalink

    Returns an untraced exit value.

  47. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  50. final def zip[E1 >: E, B](that: Exit[E1, B])(implicit zippable: Zippable[A, B]): Exit[E1, Out]

    Permalink

    Named alias for <*>.

  51. final def zipLeft[E1 >: E, B](that: Exit[E1, B]): Exit[E1, A]

    Permalink

    Named alias for <*.

  52. final def zipPar[E1 >: E, B](that: Exit[E1, B])(implicit zippable: Zippable[A, B]): Exit[E1, Out]

    Permalink

    Named alias for <&>.

  53. final def zipParLeft[E1 >: E, B](that: Exit[E1, B]): Exit[E1, A]

    Permalink

    Named alias for <&.

  54. final def zipParRight[E1 >: E, B](that: Exit[E1, B]): Exit[E1, B]

    Permalink

    Named alias for &>.

  55. final def zipRight[E1 >: E, B](that: Exit[E1, B]): Exit[E1, B]

    Permalink

    Named alias for *>.

  56. final def zipWith[E1 >: E, B, C](that: Exit[E1, B])(f: (A, B) ⇒ C, g: (Cause[E], Cause[E1]) ⇒ Cause[E1]): Exit[E1, C]

    Permalink

    Zips this together with the specified result using the combination functions.

Deprecated Value Members

  1. final def bimap[E1, A1](f: (E) ⇒ E1, g: (A) ⇒ A1): Exit[E1, A1]

    Permalink

    Maps over both the error and value type.

    Maps over both the error and value type.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use mapBoth

  2. final def flatMapM[E1 >: E, R, E2, A1](f: (A) ⇒ ZIO[R, E2, Exit[E1, A1]]): ZIO[R, E2, Exit[E1, A1]]

    Permalink

    Flat maps over the value type.

    Flat maps over the value type.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use flatMapZIO

  3. final def foldM[R, E1, B](failed: (Cause[E]) ⇒ ZIO[R, E1, B], completed: (A) ⇒ ZIO[R, E1, B])(implicit trace: ZTraceElement): ZIO[R, E1, B]

    Permalink

    Sequentially zips the this result with the specified result or else returns the failed Cause[E1]

    Sequentially zips the this result with the specified result or else returns the failed Cause[E1]

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use foldZIO

  4. final def interrupted: Boolean

    Permalink

    Determines if the result is interrupted.

    Determines if the result is interrupted.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use isInterrupted

  5. final def succeeded: Boolean

    Permalink

    Determines if the result is a success.

    Determines if the result is a success.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use isSuccess

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped