ParallelHelperFor(Int32, Int32, ParallelConfig, ActionInt32) Method
Namespace: KGySoft.ThreadingAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
public static bool For(
int fromInclusive,
int toExclusive,
ParallelConfig? configuration,
Action<int> body
)
Public Shared Function For (
fromInclusive As Integer,
toExclusive As Integer,
configuration As ParallelConfig,
body As Action(Of Integer)
) As Boolean
public:
static bool For(
int fromInclusive,
int toExclusive,
ParallelConfig^ configuration,
Action<int>^ body
)
static member For :
fromInclusive : int *
toExclusive : int *
configuration : ParallelConfig *
body : Action<int> -> bool
- fromInclusive Int32
- The start index, inclusive.
- toExclusive Int32
- The end index, exclusive.
- configuration ParallelConfig
- An optional configuration to adjust parallelization or cancellation.
This method does not report progress even if Progress is set in this parameter.
To report progress use the ForT(T, Int32, Int32, ParallelConfig, ActionInt32) overload.
- body ActionInt32
- The delegate that is invoked once per iteration.
Boolean, if the operation completed successfully.
, if the operation has been canceled and
ThrowIfCanceled in
configuration was set to
.