sealed trait 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]
- Alphabetic
- By Inheritance
- Exit
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
&>[E1 >: E, B](that: Exit[E1, B]): Exit[E1, B]
Parallelly zips the this result with the specified result discarding the first element of the tuple or else returns the failed
Cause[E1]
-
final
def
*>[E1 >: E, B](that: Exit[E1, B]): Exit[E1, B]
Sequentially zips the this result with the specified result discarding the first element of the tuple or else returns the failed
Cause[E1]
-
final
def
<&[E1 >: E, B](that: Exit[E1, B]): Exit[E1, A]
Parallelly zips the this result with the specified result discarding the second element of the tuple or else returns the failed
Cause[E1]
-
final
def
<&>[E1 >: E, B](that: Exit[E1, B]): Exit[E1, (A, B)]
Parallelly zips the this result with the specified result or else returns the failed
Cause[E1]
-
final
def
<*[E1 >: E, B](that: Exit[E1, B]): Exit[E1, A]
Sequentially zips the this result with the specified result discarding the second element of the tuple or else returns the failed
Cause[E1]
-
final
def
<*>[E1 >: E, B](that: Exit[E1, B]): Exit[E1, (A, B)]
Sequentially zips the this result with the specified result or else returns the failed
Cause[E1]
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
final
def
bimap[E1, A1](f: (E) ⇒ E1, g: (A) ⇒ A1): Exit[E1, A1]
Maps over both the error and value type.
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
const[B](b: B): Exit[E, B]
Replaces the value with the one provided.
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
flatMap[E1 >: E, A1](f: (A) ⇒ Exit[E1, A1]): Exit[E1, A1]
Flat maps over the value type.
-
final
def
fold[Z](failed: (Cause[E]) ⇒ Z, completed: (A) ⇒ Z): Z
Folds over the value or cause.
-
final
def
foldM[R, E1, B](failed: (Cause[E]) ⇒ ZIO[R, E1, B], completed: (A) ⇒ ZIO[R, E1, B]): ZIO[R, E1, B]
Sequentially zips the this result with the specified result or else returns the failed
Cause[E1]
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
getOrElse[A1 >: A](orElse: (Cause[E]) ⇒ A1): A1
Retrieves the
A
if succeeded, or else returns the specified defaultA
. -
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
interrupted: Boolean
Determines if the result is interrupted.
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
map[A1](f: (A) ⇒ A1): Exit[E, A1]
Maps over the value type.
-
final
def
mapError[E1](f: (E) ⇒ E1): Exit[E1, A]
Maps over the error type.
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
productIterator: Iterator[Any]
- Definition Classes
- Product
-
def
productPrefix: String
- Definition Classes
- Product
-
final
def
succeeded: Boolean
Determines if the result is a success.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
final
def
toEither: Either[Throwable, A]
Converts the
Exit
to anEither[Throwable, A]
, by wrapping the cause inFiberFailure
(if the result is failed). -
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
unit: Exit[E, Unit]
Discards the value.
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
zip[E1 >: E, B](that: Exit[E1, B]): Exit[E1, (A, B)]
Named alias for
<*>
. -
final
def
zipLeft[E1 >: E, B](that: Exit[E1, B]): Exit[E1, A]
Named alias for
<*
. -
final
def
zipPar[E1 >: E, B](that: Exit[E1, B]): Exit[E1, (A, B)]
Named alias for
<&>
. -
final
def
zipParLeft[E1 >: E, B](that: Exit[E1, B]): Exit[E1, A]
Named alias for
<&
. -
final
def
zipParRight[E1 >: E, B](that: Exit[E1, B]): Exit[E1, B]
Named alias for
&>
. -
final
def
zipRight[E1 >: E, B](that: Exit[E1, B]): Exit[E1, B]
Named alias for
*>
. -
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]
Zips this together with the specified result using the combination functions.