ProcessList¶
Runs a list of processes sequentially or in parallel.
Namespace: Jungle.Processes
Implements: IProcess
Overview¶
ProcessList is a composable process container that executes child processes either sequentially (each starts after the previous completes) or in parallel (all start simultaneously, the list completes when all finish). It replaces the former ParallelProcess and SequentialProcess with a single unified type.
Properties¶
| Property | Type | Description |
|---|---|---|
| executionMode | ProcessExecutionMode |
Sequential or Parallel execution. Default: Parallel. |
| processes | List<IProcess> |
Child processes to execute. |
Runtime API¶
| Member | Type | Description |
|---|---|---|
Begin(Action) |
Method | Starts all child processes according to the execution mode. |
Pause() |
Method | Pauses active child processes. |
Unpause() |
Method | Resumes paused child processes. |
Complete() |
Method | Immediately completes all remaining child processes. |
IsRunning |
bool |
True while any child process is still running. |
IsComplete |
bool |
True after all child processes have finished. |
Duration |
float |
Total (sequential) or max (parallel) duration of children. |