Table of Contents

For Method

Definition

Namespace
Cuemon.Threading
Assemblies
Cuemon.Threading.dll
Source
src/Cuemon.Threading/ParallelFactory.For.cs

For(int, int, Action<int>, Action<AsyncTaskFactoryOptions>)

Executes a parallel for loop.

public static void For(int fromInclusive, int toExclusive, Action<int> worker, Action<AsyncTaskFactoryOptions> setup = null)

Parameters

fromInclusive int

The start index, inclusive.

toExclusive int

The end index, exclusive.

worker Action<int>

The delegate that is invoked once per iteration.

setup Action<AsyncTaskFactoryOptions>

The AsyncTaskFactoryOptions which may be configured.

For<T>(int, int, Action<int, T>, T, Action<AsyncTaskFactoryOptions>)

Executes a parallel for loop.

public static void For<T>(int fromInclusive, int toExclusive, Action<int, T> worker, T arg, Action<AsyncTaskFactoryOptions> setup = null)

Parameters

fromInclusive int

The start index, inclusive.

toExclusive int

The end index, exclusive.

worker Action<int, T>

The delegate that is invoked once per iteration.

arg T

The parameter of the delegate worker.

setup Action<AsyncTaskFactoryOptions>

The AsyncTaskFactoryOptions which may be configured.

Type Parameters

T

The type of the parameter of the delegate worker.

For<T1, T2>(int, int, Action<int, T1, T2>, T1, T2, Action<AsyncTaskFactoryOptions>)

Executes a parallel for loop.

public static void For<T1, T2>(int fromInclusive, int toExclusive, Action<int, T1, T2> worker, T1 arg1, T2 arg2, Action<AsyncTaskFactoryOptions> setup = null)

Parameters

fromInclusive int

The start index, inclusive.

toExclusive int

The end index, exclusive.

worker Action<int, T1, T2>

The delegate that is invoked once per iteration.

arg1 T1

The first parameter of the delegate worker.

arg2 T2

The second parameter of the delegate worker.

setup Action<AsyncTaskFactoryOptions>

The AsyncTaskFactoryOptions which may be configured.

Type Parameters

T1

The type of the first parameter of the delegate worker.

T2

The type of the second parameter of the delegate worker.

For<T1, T2, T3>(int, int, Action<int, T1, T2, T3>, T1, T2, T3, Action<AsyncTaskFactoryOptions>)

Executes a parallel for loop.

public static void For<T1, T2, T3>(int fromInclusive, int toExclusive, Action<int, T1, T2, T3> worker, T1 arg1, T2 arg2, T3 arg3, Action<AsyncTaskFactoryOptions> setup = null)

Parameters

fromInclusive int

The start index, inclusive.

toExclusive int

The end index, exclusive.

worker Action<int, T1, T2, T3>

The delegate that is invoked once per iteration.

arg1 T1

The first parameter of the delegate worker.

arg2 T2

The second parameter of the delegate worker.

arg3 T3

The third parameter of the delegate worker.

setup Action<AsyncTaskFactoryOptions>

The AsyncTaskFactoryOptions which may be configured.

Type Parameters

T1

The type of the first parameter of the delegate worker.

T2

The type of the second parameter of the delegate worker.

T3

The type of the third parameter of the delegate worker.

For<T1, T2, T3, T4>(int, int, Action<int, T1, T2, T3, T4>, T1, T2, T3, T4, Action<AsyncTaskFactoryOptions>)

Executes a parallel for loop.

public static void For<T1, T2, T3, T4>(int fromInclusive, int toExclusive, Action<int, T1, T2, T3, T4> worker, T1 arg1, T2 arg2, T3 arg3, T4 arg4, Action<AsyncTaskFactoryOptions> setup = null)

Parameters

fromInclusive int

The start index, inclusive.

toExclusive int

The end index, exclusive.

worker Action<int, T1, T2, T3, T4>

The delegate that is invoked once per iteration.

arg1 T1

The first parameter of the delegate worker.

arg2 T2

The second parameter of the delegate worker.

arg3 T3

The third parameter of the delegate worker.

arg4 T4

The fourth parameter of the delegate worker.

setup Action<AsyncTaskFactoryOptions>

The AsyncTaskFactoryOptions which may be configured.

Type Parameters

T1

The type of the first parameter of the delegate worker.

T2

The type of the second parameter of the delegate worker.

T3

The type of the third parameter of the delegate worker.

T4

The type of the fourth parameter of the delegate worker.

For<T1, T2, T3, T4, T5>(int, int, Action<int, T1, T2, T3, T4, T5>, T1, T2, T3, T4, T5, Action<AsyncTaskFactoryOptions>)

Executes a parallel for loop.

public static void For<T1, T2, T3, T4, T5>(int fromInclusive, int toExclusive, Action<int, T1, T2, T3, T4, T5> worker, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, Action<AsyncTaskFactoryOptions> setup = null)

Parameters

fromInclusive int

The start index, inclusive.

toExclusive int

The end index, exclusive.

worker Action<int, T1, T2, T3, T4, T5>

The delegate that is invoked once per iteration.

arg1 T1

The first parameter of the delegate worker.

arg2 T2

The second parameter of the delegate worker.

arg3 T3

The third parameter of the delegate worker.

arg4 T4

The fourth parameter of the delegate worker.

arg5 T5

The fifth parameter of the delegate worker.

setup Action<AsyncTaskFactoryOptions>

The AsyncTaskFactoryOptions which may be configured.

Type Parameters

T1

The type of the first parameter of the delegate worker.

T2

The type of the second parameter of the delegate worker.

T3

The type of the third parameter of the delegate worker.

T4

The type of the fourth parameter of the delegate worker.

T5

The type of the fifth parameter of the delegate worker.

For(long, long, Action<long>, Action<AsyncTaskFactoryOptions>)

Executes a parallel for loop.

public static void For(long fromInclusive, long toExclusive, Action<long> worker, Action<AsyncTaskFactoryOptions> setup = null)

Parameters

fromInclusive long

The start index, inclusive.

toExclusive long

The end index, exclusive.

worker Action<long>

The delegate that is invoked once per iteration.

setup Action<AsyncTaskFactoryOptions>

The AsyncTaskFactoryOptions which may be configured.

For<T>(long, long, Action<long, T>, T, Action<AsyncTaskFactoryOptions>)

Executes a parallel for loop.

public static void For<T>(long fromInclusive, long toExclusive, Action<long, T> worker, T arg, Action<AsyncTaskFactoryOptions> setup = null)

Parameters

fromInclusive long

The start index, inclusive.

toExclusive long

The end index, exclusive.

worker Action<long, T>

The delegate that is invoked once per iteration.

arg T

The parameter of the delegate worker.

setup Action<AsyncTaskFactoryOptions>

The AsyncTaskFactoryOptions which may be configured.

Type Parameters

T

The type of the parameter of the delegate worker.

For<T1, T2>(long, long, Action<long, T1, T2>, T1, T2, Action<AsyncTaskFactoryOptions>)

Executes a parallel for loop.

public static void For<T1, T2>(long fromInclusive, long toExclusive, Action<long, T1, T2> worker, T1 arg1, T2 arg2, Action<AsyncTaskFactoryOptions> setup = null)

Parameters

fromInclusive long

The start index, inclusive.

toExclusive long

The end index, exclusive.

worker Action<long, T1, T2>

The delegate that is invoked once per iteration.

arg1 T1

The first parameter of the delegate worker.

arg2 T2

The second parameter of the delegate worker.

setup Action<AsyncTaskFactoryOptions>

The AsyncTaskFactoryOptions which may be configured.

Type Parameters

T1

The type of the first parameter of the delegate worker.

T2

The type of the second parameter of the delegate worker.

For<T1, T2, T3>(long, long, Action<long, T1, T2, T3>, T1, T2, T3, Action<AsyncTaskFactoryOptions>)

Executes a parallel for loop.

public static void For<T1, T2, T3>(long fromInclusive, long toExclusive, Action<long, T1, T2, T3> worker, T1 arg1, T2 arg2, T3 arg3, Action<AsyncTaskFactoryOptions> setup = null)

Parameters

fromInclusive long

The start index, inclusive.

toExclusive long

The end index, exclusive.

worker Action<long, T1, T2, T3>

The delegate that is invoked once per iteration.

arg1 T1

The first parameter of the delegate worker.

arg2 T2

The second parameter of the delegate worker.

arg3 T3

The third parameter of the delegate worker.

setup Action<AsyncTaskFactoryOptions>

The AsyncTaskFactoryOptions which may be configured.

Type Parameters

T1

The type of the first parameter of the delegate worker.

T2

The type of the second parameter of the delegate worker.

T3

The type of the third parameter of the delegate worker.

For<T1, T2, T3, T4>(long, long, Action<long, T1, T2, T3, T4>, T1, T2, T3, T4, Action<AsyncTaskFactoryOptions>)

Executes a parallel for loop.

public static void For<T1, T2, T3, T4>(long fromInclusive, long toExclusive, Action<long, T1, T2, T3, T4> worker, T1 arg1, T2 arg2, T3 arg3, T4 arg4, Action<AsyncTaskFactoryOptions> setup = null)

Parameters

fromInclusive long

The start index, inclusive.

toExclusive long

The end index, exclusive.

worker Action<long, T1, T2, T3, T4>

The delegate that is invoked once per iteration.

arg1 T1

The first parameter of the delegate worker.

arg2 T2

The second parameter of the delegate worker.

arg3 T3

The third parameter of the delegate worker.

arg4 T4

The fourth parameter of the delegate worker.

setup Action<AsyncTaskFactoryOptions>

The AsyncTaskFactoryOptions which may be configured.

Type Parameters

T1

The type of the first parameter of the delegate worker.

T2

The type of the second parameter of the delegate worker.

T3

The type of the third parameter of the delegate worker.

T4

The type of the fourth parameter of the delegate worker.

For<T1, T2, T3, T4, T5>(long, long, Action<long, T1, T2, T3, T4, T5>, T1, T2, T3, T4, T5, Action<AsyncTaskFactoryOptions>)

Executes a parallel for loop.

public static void For<T1, T2, T3, T4, T5>(long fromInclusive, long toExclusive, Action<long, T1, T2, T3, T4, T5> worker, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, Action<AsyncTaskFactoryOptions> setup = null)

Parameters

fromInclusive long

The start index, inclusive.

toExclusive long

The end index, exclusive.

worker Action<long, T1, T2, T3, T4, T5>

The delegate that is invoked once per iteration.

arg1 T1

The first parameter of the delegate worker.

arg2 T2

The second parameter of the delegate worker.

arg3 T3

The third parameter of the delegate worker.

arg4 T4

The fourth parameter of the delegate worker.

arg5 T5

The fifth parameter of the delegate worker.

setup Action<AsyncTaskFactoryOptions>

The AsyncTaskFactoryOptions which may be configured.

Type Parameters

T1

The type of the first parameter of the delegate worker.

T2

The type of the second parameter of the delegate worker.

T3

The type of the third parameter of the delegate worker.

T4

The type of the fourth parameter of the delegate worker.

T5

The type of the fifth parameter of the delegate worker.