Exit

zio.Exit
See theExit companion trait
object Exit extends Serializable

Attributes

Companion
trait
Source
ZIO.scala
Graph
Supertypes
trait Sum
trait Mirror
trait Serializable
class Object
trait Matchable
class Any
Show all
Self type
Exit.type

Members list

Type members

Classlikes

final case class Failure[+E](cause: Cause[E]) extends Exit[E, Nothing]

Attributes

Source
ZIO.scala
Supertypes
trait Exit[E, Nothing]
trait ZIO[Any, E, Nothing]
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final case class Success[+A](value: A) extends Exit[Nothing, A]

Attributes

Source
ZIO.scala
Supertypes
trait Exit[Nothing, A]
trait ZIO[Any, Nothing, A]
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Inherited and Abstract types

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
Source
Mirror.scala

The name of the type

The name of the type

Attributes

Inherited from:
Mirror
Source
Mirror.scala

Value members

Concrete methods

def collectAll[E, A](exits: Iterable[Exit[E, A]]): Option[Exit[E, List[A]]]

Collects all Exits, and returns a List of the values if all Exits succeeded, or combines the causes sequentially in case of failures. Returns None in case the input iterable is empty

Collects all Exits, and returns a List of the values if all Exits succeeded, or combines the causes sequentially in case of failures. Returns None in case the input iterable is empty

Attributes

See also

collectAllParDiscard For a more performant variant that discard the successful values

Source
ZIO.scala
def collectAllDiscard[E, A](exits: Iterable[Exit[E, A]]): Exit[E, Unit]

Collects all Exits, and succeeds with Unit if all Exits succeeded, or combines the causes sequentially in case of failures.

Collects all Exits, and succeeds with Unit if all Exits succeeded, or combines the causes sequentially in case of failures.

Attributes

Source
ZIO.scala
def collectAllPar[E, A](exits: Iterable[Exit[E, A]]): Option[Exit[E, List[A]]]

Collects all Exits, and returns a List of the values if all Exits succeeded, or combines the causes in parallel in case of failures. Returns None in case the input iterable is empty

Collects all Exits, and returns a List of the values if all Exits succeeded, or combines the causes in parallel in case of failures. Returns None in case the input iterable is empty

Attributes

See also

collectAllParDiscard For a more performant variant that discard the successful values

Source
ZIO.scala
def collectAllParDiscard[E, A](exits: Iterable[Exit[E, A]]): Exit[E, Unit]

Collects all Exits, and succeeds with Unit if all Exits succeeded, or combines the causes in parallel in case of failures.

Collects all Exits, and succeeds with Unit if all Exits succeeded, or combines the causes in parallel in case of failures.

Attributes

Source
ZIO.scala
def die(t: Throwable): Exit[Nothing, Nothing]

Attributes

Source
ZIO.scala
def fail[E](error: E): Exit[E, Nothing]

Attributes

Source
ZIO.scala
def failCause[E](cause: Cause[E]): Exit[E, Nothing]

Attributes

Source
ZIO.scala
def flatten[E, A](exit: Exit[E, Exit[E, A]]): Exit[E, A]

Attributes

Source
ZIO.scala
def fromEither[E, A](e: Either[E, A]): Exit[E, A]

Attributes

Source
ZIO.scala
def fromOption[A](o: Option[A]): Exit[Unit, A]

Attributes

Source
ZIO.scala
def fromTry[A](t: Try[A]): Exit[Throwable, A]

Attributes

Source
ZIO.scala
def interrupt(id: FiberId): Exit[Nothing, Nothing]

Attributes

Source
ZIO.scala
def succeed[A](a: A): Exit[Nothing, A]

Attributes

Source
ZIO.scala

Inherited methods

inline def attempt[A](inline code: => A): Exit[Throwable, A]

Attributes

Inherited from:
ExitVersionSpecific (hidden)
Source
ExitVersionSpecific.scala

Concrete fields

val none: Exit[Nothing, Option[Nothing]]

Attributes

Source
ZIO.scala
val unit: Exit[Nothing, Unit]

Attributes

Source
ZIO.scala