final class NestedBooleanOps extends AnyVal
- Alphabetic
- By Inheritance
- NestedBooleanOps
- AnyVal
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new NestedBooleanOps(test: async.Task[Boolean])
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
##(): Int
- Definition Classes
- Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
cond[T](good: ⇒ T, bad: ⇒ Anomaly): async.Task[T]
- returns
pure effect from
if the boolean is true failed effect withgood
busymachines.core.Anomaly if boolean is false failed effect if the effect wrapping the boolean is already failedbad
- Annotations
- @inline()
-
def
condThr[T](good: ⇒ T, bad: ⇒ Throwable): async.Task[T]
- returns
pure effect from
if the boolean is true failed effect withgood
java.lang.Throwable if boolean is false failed effect if the effect wrapping the boolean is already failedbad
- Annotations
- @inline()
-
def
condWith[T](good: ⇒ async.Task[T], bad: ⇒ Anomaly): async.Task[T]
- returns
effect resulted from
if the boolean is true failed effect withgood
busymachines.core.Anomaly if boolean is false failed effect if the effect wrapping the boolean is already failedbad
- Annotations
- @inline()
-
def
condWithThr[T](good: ⇒ async.Task[T], bad: ⇒ Throwable): async.Task[T]
- returns
effect resulted from
if the boolean is true failed effect withgood
java.lang.Throwable if boolean is false failed effect if the effect wrapping the boolean is already failedbad
- Annotations
- @inline()
-
def
effectOnFalse(effect: ⇒ async.Task[_]): async.Task[Unit]
Runs the given effect when the value of this Boolean is
Does not run the side-effect if the value is also a failed effect.false
Runs the given effect when the value of this Boolean is
Does not run the side-effect if the value is also a failed effect.false
- effect
The effect to run
- returns
Does not return anything, this method is inherently imperative, and relies on side-effects to achieve something.
- Annotations
- @inline()
-
def
effectOnTrue(effect: ⇒ async.Task[_]): async.Task[Unit]
Runs the given effect when the value of this Boolean is
Does not run the side-effect if the value is also a failed effect.true
Runs the given effect when the value of this Boolean is
Does not run the side-effect if the value is also a failed effect.true
- effect
The effect to run
- returns
Does not return anything, this method is inherently imperative, and relies on side-effects to achieve something.
- Annotations
- @inline()
-
def
failOnFalse(bad: ⇒ Anomaly): async.Task[Unit]
- returns
Failed effect, if the boxed boolean is false, or if the original effect is failed
- Annotations
- @inline()
-
def
failOnFalseThr(bad: ⇒ Throwable): async.Task[Unit]
- returns
Failed effect, if the boxed boolean is false, or if the original effect is failed
- Annotations
- @inline()
-
def
failOnTrue(bad: ⇒ Anomaly): async.Task[Unit]
- returns
Failed effect, if the boxed boolean is true, or if the original effect is failed
- Annotations
- @inline()
-
def
failOnTrueThr(bad: ⇒ Throwable): async.Task[Unit]
- returns
Failed effect, if the boxed boolean is true, or if the original effect is failed
- Annotations
- @inline()
-
def
getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val test: async.Task[Boolean]
-
def
toString(): String
- Definition Classes
- Any