libstp.step.parallel

Classes

Parallel

Composite step that runs branches concurrently and waits for all of them.

Functions

parallel(→ Parallel)

Create a parallel composite step.

Module Contents

class libstp.step.parallel.Parallel(steps: List[libstp.step.Step])

Bases: libstp.step.Step

Composite 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:

Parallel

Raises:

TypeError – If any argument is not a Step, Sequential, or List[Step].