ParallelHelperBeginFor(Int32, Int32, AsyncConfig, ActionInt32) Method
Namespace: KGySoft.ThreadingAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
public static IAsyncResult BeginFor(
int fromInclusive,
int toExclusive,
AsyncConfig? asyncConfig,
Action<int> body
)
Public Shared Function BeginFor (
fromInclusive As Integer,
toExclusive As Integer,
asyncConfig As AsyncConfig,
body As Action(Of Integer)
) As IAsyncResult
public:
static IAsyncResult^ BeginFor(
int fromInclusive,
int toExclusive,
AsyncConfig^ asyncConfig,
Action<int>^ body
)
static member BeginFor :
fromInclusive : int *
toExclusive : int *
asyncConfig : AsyncConfig *
body : Action<int> -> IAsyncResult
- fromInclusive Int32
- The start index, inclusive.
- toExclusive Int32
- The end index, exclusive.
- asyncConfig AsyncConfig
- An optional configuration to adjust parallelization, cancellation or completion callback.
This method does not report progress even if Progress is set in this parameter.
To report progress use the BeginForT(T, Int32, Int32, AsyncConfig, ActionInt32) overload.
- body ActionInt32
- The delegate that is invoked once per iteration.
IAsyncResultAn
IAsyncResult that represents the asynchronous operation, which could still be pending.