For Each (Parallel)
Concurrency
Control
Inputs
in | Exec | exec | multiplexed |
source | Data | any | None |
- Name
- in
- Kind
- Exec
- Type
- exec
- Flags
- multiplexed
- Name
- source
- Kind
- Data
- Type
- any
- Flags
- None
Outputs
body | Exec | exec | None |
item | Data | any | multiplexed |
completed | Exec | exec | None |
- Name
- body
- Kind
- Exec
- Type
- exec
- Flags
- None
- Name
- item
- Kind
- Data
- Type
- any
- Flags
- multiplexed
- Name
- completed
- Kind
- Exec
- Type
- exec
- Flags
- None
Parameters
maxDegreeOfParallelism | System.Int32 | no | 4 | None |
- Name
- maxDegreeOfParallelism
- Type
- System.Int32
- Required
- no
- Default
- 4
- Choices
- None
Lowers to C#
await Parallel.ForEachAsync(source, new() { MaxDegreeOfParallelism = n }, async (item, ct) => { /* body */ });Used in
- Shout out every live teammate in parallel (Example)
- Run independent actions in parallel (Pattern)
