final case class Success[+A](value: A) extends Exit[Nothing, A] with Product with Serializable
- Alphabetic
- By Inheritance
- Success
- Exit
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new Success(value: A)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def &>[E1 >: Nothing, 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]
Parallelly zips the this result with the specified result discarding the first element of the tuple or else returns the failed
Cause[E1]
- Definition Classes
- Exit
- final def *>[E1 >: Nothing, 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]
Sequentially zips the this result with the specified result discarding the first element of the tuple or else returns the failed
Cause[E1]
- Definition Classes
- Exit
- final def <&[E1 >: Nothing, 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]
Parallelly zips the this result with the specified result discarding the second element of the tuple or else returns the failed
Cause[E1]
- Definition Classes
- Exit
- final def <&>[E1 >: Nothing, B](that: Exit[E1, B])(implicit zippable: Zippable[A, B]): Exit[E1, Out]
Parallelly zips the this result with the specified result or else returns the failed
Cause[E1]
Parallelly zips the this result with the specified result or else returns the failed
Cause[E1]
- Definition Classes
- Exit
- final def <*[E1 >: Nothing, 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]
Sequentially zips the this result with the specified result discarding the second element of the tuple or else returns the failed
Cause[E1]
- Definition Classes
- Exit
- final def <*>[E1 >: Nothing, B](that: Exit[E1, B])(implicit zippable: Zippable[A, B]): Exit[E1, Out]
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]
- Definition Classes
- Exit
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def as[B](b: B): Exit[Nothing, B]
Replaces the success value with the one provided.
Replaces the success value with the one provided.
- Definition Classes
- Exit
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- final def causeOption: Option[Cause[Nothing]]
Returns an option of the cause of failure.
Returns an option of the cause of failure.
- Definition Classes
- Exit
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def exists(p: (A) => Boolean): Boolean
- Definition Classes
- Exit
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def flatMap[E1 >: Nothing, A1](f: (A) => Exit[E1, A1]): Exit[E1, A1]
Flat maps over the value type.
Flat maps over the value type.
- Definition Classes
- Exit
- final def flatMapZIO[E1 >: Nothing, R, E2, A1](f: (A) => ZIO[R, E2, Exit[E1, A1]]): ZIO[R, E2, Exit[E1, A1]]
Flat maps over the value type.
Flat maps over the value type.
- Definition Classes
- Exit
- final def flatten[E1 >: Nothing, B](implicit ev: <:<[A, Exit[E1, B]]): Exit[E1, B]
Flattens an Exit of an Exit into a single Exit value.
Flattens an Exit of an Exit into a single Exit value.
- Definition Classes
- Exit
- final def fold[Z](failed: (Cause[Nothing]) => Z, completed: (A) => Z): Z
Folds over the value or cause.
Folds over the value or cause.
- Definition Classes
- Exit
- final def foldZIO[R, E1, B](failed: (Cause[Nothing]) => ZIO[R, E1, B], completed: (A) => ZIO[R, E1, B])(implicit trace: Trace): ZIO[R, E1, B]
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]
- Definition Classes
- Exit
- final def foreach[R, E1 >: Nothing, B](f: (A) => ZIO[R, E1, B])(implicit trace: Trace): ZIO[R, Nothing, Exit[E1, B]]
Applies the function
f
to the successful result of theExit
and returns the result in a newExit
.Applies the function
f
to the successful result of theExit
and returns the result in a newExit
.- Definition Classes
- Exit
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def getOrElse[A1 >: A](orElse: (Cause[Nothing]) => A1): A1
Retrieves the
A
if succeeded, or else returns the specified defaultA
.Retrieves the
A
if succeeded, or else returns the specified defaultA
.- Definition Classes
- Exit
- final def isFailure: Boolean
Determines if the result is a failure.
Determines if the result is a failure.
- Definition Classes
- Exit
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def isInterrupted: Boolean
Determines if the result is interrupted.
Determines if the result is interrupted.
- Definition Classes
- Exit
- final def isSuccess: Boolean
Determines if the result is a success.
Determines if the result is a success.
- Definition Classes
- Exit
- final def map[A1](f: (A) => A1): Exit[Nothing, A1]
Maps over the value type.
Maps over the value type.
- Definition Classes
- Exit
- final def mapBoth[E1, A1](f: (Nothing) => E1, g: (A) => A1): Exit[E1, A1]
Maps over both the error and value type.
Maps over both the error and value type.
- Definition Classes
- Exit
- final def mapError[E1](f: (Nothing) => E1): Exit[E1, A]
Maps over the error type.
Maps over the error type.
- Definition Classes
- Exit
- final def mapErrorCause[E1](f: (Cause[Nothing]) => Cause[E1]): Exit[E1, A]
Maps over the cause type.
Maps over the cause type.
- Definition Classes
- Exit
- 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()
- final def orElseFail[E1](e1: => E1): Exit[E1, A]
Replaces the error value with the one provided.
Replaces the error value with the one provided.
- Definition Classes
- Exit
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- 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).Converts the
Exit
to anEither[Throwable, A]
, by wrapping the cause inFiberFailure
(if the result is failed).- Definition Classes
- Exit
- final def toZIO(implicit trace: Trace): IO[Nothing, A]
Converts the
Exit
to aZIO
effect.Converts the
Exit
to aZIO
effect.- Definition Classes
- Exit
- final def unit: Exit[Nothing, Unit]
Discards the value.
Discards the value.
- Definition Classes
- Exit
- final def untraced: Exit[Nothing, A]
Returns an untraced exit value.
Returns an untraced exit value.
- Definition Classes
- Exit
- val value: A
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def zip[E1 >: Nothing, B](that: Exit[E1, B])(implicit zippable: Zippable[A, B]): Exit[E1, Out]
Named alias for
<*>
.Named alias for
<*>
.- Definition Classes
- Exit
- final def zipLeft[E1 >: Nothing, B](that: Exit[E1, B]): Exit[E1, A]
Named alias for
<*
.Named alias for
<*
.- Definition Classes
- Exit
- final def zipPar[E1 >: Nothing, B](that: Exit[E1, B])(implicit zippable: Zippable[A, B]): Exit[E1, Out]
Named alias for
<&>
.Named alias for
<&>
.- Definition Classes
- Exit
- final def zipParLeft[E1 >: Nothing, B](that: Exit[E1, B]): Exit[E1, A]
Named alias for
<&
.Named alias for
<&
.- Definition Classes
- Exit
- final def zipParRight[E1 >: Nothing, B](that: Exit[E1, B]): Exit[E1, B]
Named alias for
&>
.Named alias for
&>
.- Definition Classes
- Exit
- final def zipRight[E1 >: Nothing, B](that: Exit[E1, B]): Exit[E1, B]
Named alias for
*>
.Named alias for
*>
.- Definition Classes
- Exit
- final def zipWith[E1 >: Nothing, B, C](that: Exit[E1, B])(f: (A, B) => C, g: (Cause[Nothing], Cause[E1]) => Cause[E1]): Exit[E1, C]
Zips this together with the specified result using the combination functions.
Zips this together with the specified result using the combination functions.
- Definition Classes
- Exit