Class ParallelHelper
Provides utility methods for parallel execution using the Parallel.ForEach pattern.
Inherited Members
Namespace: mk.helpers
Assembly: mk.helpers.dll
Syntax
public static class ParallelHelper
Methods
While(Func<bool>, ParallelOptions, Action)
Executes the specified body action in parallel as long as the specified condition returns true.
Declaration
public static void While(Func<bool> condition, ParallelOptions options, Action body)
Parameters
| Type | Name | Description |
|---|---|---|
| Func<bool> | condition | A function that returns a boolean value indicating whether the loop should continue. |
| ParallelOptions | options | The ParallelOptions that configure the parallel execution. |
| Action | body | The action to be executed in parallel. |