sealed trait Status[+E] extends AnyRef
The execution status produced by a Stage.
A Status travels alongside the output (or absence of output) in a Yield and is accumulated as stages are
composed. There are two possible states:
- Status.Success — the stage completed normally and processing may continue.
- Status.Complete — a unit of work has finished. Passed to Evolution when selecting the next continuation
stage; the enclosing cycle operators (
Loop,Repeatand the rest ofh8io.stages.cyclesin the lib module) use it to end the current cycle. Whenerrorsis empty this represents clean completion; whenerrorsis non-empty it carries one or more accumulated errors.
Statuses form a monoid under combine, used when merging the results of composed stages: Success is the identity
element and Complete accumulates errors on combination.
- E
the error type (covariant)
- Alphabetic
- By Inheritance
- Status
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
def
combine[_E >: E](next: Status[_E]): Status[_E]
Combines this status with
next, returning the more severe of the two.Combines this status with
next, returning the more severe of the two.Successis the identity element;CompletedominatesSuccessand twoCompletevalues are merged by concatenating their error sequences. -
abstract
def
map[_E](f: (E) ⇒ _E): Status[_E]
Transforms the error values contained in this status.
Transforms the error values contained in this status.
- _E
the resulting error type
- f
the mapping function applied to each error value
- returns
a new
Statuswith errors mapped byf
Concrete 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( ... ) @native() @IntrinsicCandidate()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated