-
Notifications
You must be signed in to change notification settings - Fork 35
M_CodeJam_Threading_ParallelExtensions_RunInParallel__1
Andrew Koryavchenko edited this page Jun 17, 2018
·
7 revisions
Runs in parallel actions for provided data source.
Namespace: CodeJam.Threading
Assembly: CodeJam (in CodeJam.dll) Version: 2.1.0.0
C#
public static void RunInParallel<T>(
this IEnumerable<T> source,
Action<T> action,
string processName = "ParallelProcess"
)
VB
<ExtensionAttribute>
Public Shared Sub RunInParallel(Of T) (
source As IEnumerable(Of T),
action As Action(Of T),
Optional processName As String = "ParallelProcess"
)
F#
[<ExtensionAttribute>]
static member RunInParallel :
source : IEnumerable<'T> *
action : Action<'T> *
?processName : string
(* Defaults:
let _processName = defaultArg processName "ParallelProcess"
*)
-> unit
- source
- Type: System.Collections.Generic.IEnumerable(T)
Source to run. - action
- Type: System.Action(T)
Action to run. - processName (Optional)
- Type: System.String
Process name.
- T
- [Missing documentation for "M:CodeJam.Threading.ParallelExtensions.RunInParallel
1(System.Collections.Generic.IEnumerable{
0},System.Action{``0},System.String)"]
In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerable(T). 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