WaterfallPipeline <Ctx, Input>
Hierarchy
- SerialPipeline<{}, Ctx, Input>
- WaterfallPipeline
Index
Events
readonlyonAfterRun
readonlyonBeforeRun
Called before the pipeline executes work units.
readonlyonRunWorkUnit
Called before a single work unit is executed.
Other
constructor
Type parameters
- Ctx: Context
- Input = unknown
readonlycontext
readonlydebug
depth
index
readonlyoptions
Validated and configured options.
root
readonlyvalue
id
Return a unique hierarchical ID.
blueprint
configure
Set an options object by merging the new partial and existing options with the defined blueprint, while running all validation checks. Freeze and return the options object.
object.configure({ name: 'Boost' });
object.configure((prevOptions) => ({
nestedObject: {
...prevOptions.nestedObject,
some: 'value',
},
}));
getWorkUnits
Traverse the linked list to return a list of work units in defined order.
monitor
Monitor all hierarchical pipelines, routines, and tasks being executed, by listening to all applicable events.
pipe
Pipe a work unit to be ran with the return value of the previous work unit.
Type parameters
- O
run
Execute the pipeline in sequential order with the output of each work unit being passed to the next work unit in the chain.
Called after the pipeline executes work units.