libstp.step.parallel¶
Classes¶
Composite step that runs branches concurrently and waits for all of them. |
Functions¶
|
Create a parallel composite step. |
Module Contents¶
- class libstp.step.parallel.Parallel(steps: List[libstp.step.Step])¶
Bases:
libstp.step.StepComposite step that runs branches concurrently and waits for all of them.
- steps: List[libstp.step.Step]¶
- to_simulation_step() libstp.step.SimulationStep¶
- libstp.step.parallel.parallel(*args) Parallel¶
Create a parallel composite step.
- Parameters:
*args – Each argument can be a step, a sequential composite, or a list of steps that should be wrapped into a sequential branch.
- Returns:
A Parallel step instance containing all specified steps.
- Return type:
- Raises:
TypeError – If any argument is not a Step, Sequential, or List[Step].