-
Notifications
You must be signed in to change notification settings - Fork 35
M_CodeJam_Threading_ParallelExtensions_RunInParallel
Andrew Koryavchenko edited this page Jun 17, 2018
·
7 revisions
Runs in parallel provided source of actions.
Namespace: CodeJam.Threading
Assembly: CodeJam (in CodeJam.dll) Version: 2.1.0.0
C#
public static void RunInParallel(
this IEnumerable<Action> source,
int parallelCount,
string processName = "ParallelProcess"
)
VB
<ExtensionAttribute>
Public Shared Sub RunInParallel (
source As IEnumerable(Of Action),
parallelCount As Integer,
Optional processName As String = "ParallelProcess"
)
F#
[<ExtensionAttribute>]
static member RunInParallel :
source : IEnumerable<Action> *
parallelCount : int *
?processName : string
(* Defaults:
let _processName = defaultArg processName "ParallelProcess"
*)
-> unit
- source
- Type: System.Collections.Generic.IEnumerable(Action)
Actions to run. - parallelCount
- Type: System.Int32
number of threads to use. - processName (Optional)
- Type: System.String
Process name pattern.
In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerable(Action). When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
ParallelExtensions Class
RunInParallel Overload
CodeJam.Threading Namespace