ChildExecutorDecision.ts overview
Since v2.0.0
Exports Grouped by Category
constructors
Close
Signature
declare const Close: (value: unknown) => ChildExecutorDecision
Since v2.0.0
Continue
Signature
declare const Continue: (_: void) => ChildExecutorDecision
Since v2.0.0
Yield
Signature
declare const Yield: (_: void) => ChildExecutorDecision
Since v2.0.0
folding
match
Folds over a ChildExecutorDecision
to produce a value of type A
.
Signature
declare const match: {
<A>(options: {
readonly onContinue: () => A
readonly onClose: (value: unknown) => A
readonly onYield: () => A
}): (self: ChildExecutorDecision) => A
<A>(
self: ChildExecutorDecision,
options: { readonly onContinue: () => A; readonly onClose: (value: unknown) => A; readonly onYield: () => A }
): A
}
Since v2.0.0
models
ChildExecutorDecision (type alias)
Signature
type ChildExecutorDecision = Continue | Close | Yield
Since v2.0.0
Close (interface)
Close the current substream with a given value and pass execution to the next substream
Signature
export interface Close extends ChildExecutorDecision.Proto {
readonly _tag: "Close"
readonly value: unknown
}
Since v2.0.0
Continue (interface)
Continue executing the current substream
Signature
export interface Continue extends ChildExecutorDecision.Proto {
readonly _tag: "Continue"
}
Since v2.0.0
Yield (interface)
Pass execution to the next substream. This either pulls a new element from upstream, or yields to an already created active substream.
Signature
export interface Yield extends ChildExecutorDecision.Proto {
readonly _tag: "Yield"
}
Since v2.0.0
refinements
isChildExecutorDecision
Returns true
if the specified value is a ChildExecutorDecision
, false
otherwise.
Signature
declare const isChildExecutorDecision: (u: unknown) => u is ChildExecutorDecision
Since v2.0.0
isClose
Returns true
if the specified ChildExecutorDecision
is a Close
, false
otherwise.
Signature
declare const isClose: (self: ChildExecutorDecision) => self is Close
Since v2.0.0
isContinue
Returns true
if the specified ChildExecutorDecision
is a Continue
, false
otherwise.
Signature
declare const isContinue: (self: ChildExecutorDecision) => self is Continue
Since v2.0.0
isYield
Returns true
if the specified ChildExecutorDecision
is a Yield
, false
otherwise.
Signature
declare const isYield: (self: ChildExecutorDecision) => self is Yield
Since v2.0.0
symbols
ChildExecutorDecisionTypeId
Signature
declare const ChildExecutorDecisionTypeId: unique symbol
Since v2.0.0
ChildExecutorDecisionTypeId (type alias)
Signature
type ChildExecutorDecisionTypeId = typeof ChildExecutorDecisionTypeId
Since v2.0.0
utils
ChildExecutorDecision (namespace)
Since v2.0.0
Proto (interface)
Signature
export interface Proto {
readonly [ChildExecutorDecisionTypeId]: ChildExecutorDecisionTypeId
}
Since v2.0.0