final case class Outcome[+A](result: A) extends UnlessShutdown[A] with Product with Serializable
- Alphabetic
- By Inheritance
- Outcome
- UnlessShutdown
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new Outcome(result: A)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def flatMap[B](f: (A) => UnlessShutdown[B]): UnlessShutdown[B]
Monadically chain two outcome computations.
Monadically chain two outcome computations. Abortion due to shutdown propagates.
- Definition Classes
- Outcome → UnlessShutdown
- def foreach(f: (A) => Unit): Unit
Applies the function to the outcome if available
Applies the function to the outcome if available
- Definition Classes
- Outcome → UnlessShutdown
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isOutcome: Boolean
Returns whether the outcome is an actual outcome
Returns whether the outcome is an actual outcome
- Definition Classes
- Outcome → UnlessShutdown
- def map[B](f: (A) => B): Outcome[B]
Transforms the outcome using the given function.
Transforms the outcome using the given function.
- Definition Classes
- Outcome → UnlessShutdown
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def onShutdown[B >: A](ifShutdown: => B): A
Evaluate the argument upon abortion and otherwise return the outcome
Evaluate the argument upon abortion and otherwise return the outcome
Analogue to scala.Option.getOrElse.
- Definition Classes
- Outcome → UnlessShutdown
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- val result: A
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toRight[L](aborted: => L): Either[L, A]
Convert the outcome into an scala.Right$ or scala.Left$
(aborted)
upon abortion.Convert the outcome into an scala.Right$ or scala.Left$
(aborted)
upon abortion.- Definition Classes
- Outcome → UnlessShutdown
- def traverse[F[_], B](f: (A) => F[B])(implicit F: Applicative[F]): F[UnlessShutdown[B]]
Applicative traverse for outcome computations.
Applicative traverse for outcome computations. The given function is not applied upon abortion.
- Definition Classes
- Outcome → UnlessShutdown
- 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 wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])