ChildExecutorDecision
Constructors
Signature
declare const Close: (value: unknown) => ChildExecutorDecision;Signature
declare const Continue: (_: void) => ChildExecutorDecision;Signature
declare const Yield: (_: void) => ChildExecutorDecision;Folding
Signature
declare const match: {
<A>(options: {
readonly onClose: (value: unknown) => A;
readonly onContinue: () => A;
readonly onYield: () => A;
}): (self: ChildExecutorDecision) => A;
<A>(
self: ChildExecutorDecision,
options: {
readonly onClose: (value: unknown) => A;
readonly onContinue: () => A;
readonly onYield: () => A;
},
): A;
};Models
ChildExecutorDecision type
Added in v2.0.0
Source
Signature
type ChildExecutorDecision = Continue | Close | Yield;Close the current substream with a given value and pass execution to the next substream
Signature
interface Close extends Proto {
readonly _tag: "Close";
readonly value: unknown;
}Continue executing the current substream
Signature
interface Continue extends Proto {
readonly _tag: "Continue";
}Pass execution to the next substream. This either pulls a new element from upstream, or yields to an already created active substream.
Signature
interface Yield extends Proto {
readonly _tag: "Yield";
}Other
ChildExecutorDecision
Added in v2.0.0
Source
Refinements
isChildExecutorDecision
Added in v2.0.0
Source
Returns true if the specified value is a ChildExecutorDecision, false otherwise.
Signature
declare const isChildExecutorDecision: (u: unknown) => u is ChildExecutorDecision;Returns true if the specified ChildExecutorDecision is a Close, false otherwise.
Signature
declare const isClose: (self: ChildExecutorDecision) => self is Close;isContinue
Added in v2.0.0
Source
Returns true if the specified ChildExecutorDecision is a Continue, false otherwise.
Signature
declare const isContinue: (self: ChildExecutorDecision) => self is Continue;Returns true if the specified ChildExecutorDecision is a Yield, false otherwise.
Signature
declare const isYield: (self: ChildExecutorDecision) => self is Yield;Symbols
ChildExecutorDecisionTypeId
Added in v2.0.0
Source
Signature
declare const ChildExecutorDecisionTypeId: unique symbol;ChildExecutorDecisionTypeId type
Added in v2.0.0
Source
Signature
type ChildExecutorDecisionTypeId = typeof ChildExecutorDecisionTypeId;
Folds over a
ChildExecutorDecisionto produce a value of typeA.