Exit

object Exit extends Serializable
Companion:
class
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Exit.type

Type members

Classlikes

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

Inherited types

The names of the product elements

The names of the product elements

Inherited from:
Mirror

The name of the type

The name of the type

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 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 halt[E](cause: Cause[E]): Exit[E, Nothing]
def interrupt(id: Id): Exit[Nothing, Nothing]
def succeed[A](a: A): Exit[Nothing, A]

Concrete fields

val unit: Exit[Nothing, Unit]