final class NestedResultOps[T] extends AnyVal
- Alphabetic
- By Inheritance
- NestedResultOps
- AnyVal
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new NestedResultOps(result: async.Task[sync.Result[T]])
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
effectOnFail(effect: (Anomaly) ⇒ async.Task[_]): async.Task[Unit]
Runs the given effect when the boxed value of this busymachines.effects.sync.Result is busymachines.effects.sync.Incorrect Does not run the side-effect if the value is also a failed effect.
Runs the given effect when the boxed value of this busymachines.effects.sync.Result is busymachines.effects.sync.Incorrect Does not run the side-effect if the value is also a failed effect.
- 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
effectOnPure(effect: (T) ⇒ async.Task[_]): async.Task[Unit]
Runs the given effect when the boxed value of this busymachines.effects.sync.Result is busymachines.effects.sync.Correct Does not run the side-effect if the value is also a failed effect.
Runs the given effect when the boxed value of this busymachines.effects.sync.Result is busymachines.effects.sync.Correct Does not run the side-effect if the value is also a failed effect.
- 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
getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val result: async.Task[sync.Result[T]]
-
def
toString(): String
- Definition Classes
- Any
-
def
unpack: async.Task[T]
Sequences the failure of the busymachines.effects.sync.Incorrect busymachines.effects.sync.Result into this effect.
Sequences the failure of the busymachines.effects.sync.Incorrect busymachines.effects.sync.Result into this effect.
The failure of this effect takes precedence over the failure of the busymachines.effects.sync.Incorrect value.
- Annotations
- @inline()