Exit

zio.Exit$
See theExit companion trait
object Exit extends Serializable

Attributes

Companion:
trait
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Exit.type

Members list

Concise view

Type members

Classlikes

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

Attributes

Graph
Supertypes
trait Exit[E, Nothing]
trait ZIO[Any, E, Nothing]
trait Product
trait Equals
class Object
trait Matchable
class Any
final case class Success[+A](value: A) extends Exit[Nothing, A]

Attributes

Graph
Supertypes
trait Exit[Nothing, A]
trait ZIO[Any, Nothing, A]
trait Product
trait Equals
class Object
trait Matchable
class Any

Inherited types

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def collectAll[E, A](exits: Iterable[Exit[E, A]]): Option[Exit[E, List[A]]]
def collectAllPar[E, A](exits: Iterable[Exit[E, A]]): Option[Exit[E, List[A]]]
def die(t: Throwable): Exit[Nothing, Nothing]
def fail[E](error: E): Exit[E, Nothing]
def failCause[E](cause: Cause[E]): Exit[E, Nothing]
def flatten[E, A](exit: Exit[E, Exit[E, A]]): Exit[E, A]
def fromEither[E, A](e: Either[E, A]): Exit[E, A]
def fromOption[A](o: Option[A]): Exit[Unit, A]
def fromTry[A](t: Try[A]): Exit[Throwable, A]
def interrupt(id: FiberId): Exit[Nothing, Nothing]
def succeed[A](a: A): Exit[Nothing, A]

Concrete fields

val unit: Exit[Nothing, Unit]