ChildExecutorDecision
Constructors
Folding
Folds over a ChildExecutorDecision to produce a value of type A.
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 | YieldClose 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 ChildExecutorDecisionReturns true if the specified ChildExecutorDecision is a Close, false
otherwise.
Signature
declare const isClose: (self: ChildExecutorDecision) => self is CloseisContinue
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 ContinueReturns true if the specified ChildExecutorDecision is a Yield, false
otherwise.
Signature
declare const isYield: (self: ChildExecutorDecision) => self is YieldSymbols
ChildExecutorDecisionTypeId
Added in v2.0.0
Source
Signature
declare const ChildExecutorDecisionTypeId: unique symbolChildExecutorDecisionTypeId type
Added in v2.0.0
Source
Signature
type ChildExecutorDecisionTypeId = typeof ChildExecutorDecisionTypeId