Skip to content

M_CodeJam_Threading_ParallelExtensions_RunInParallel__1

Andrew Koryavchenko edited this page Jun 17, 2018 · 7 revisions

ParallelExtensions.RunInParallel(T) Method (IEnumerable(T), Action(T), String)

Runs in parallel actions for provided data source.

Namespace: CodeJam.Threading
Assembly: CodeJam (in CodeJam.dll) Version: 2.1.0.0

Syntax

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 

Parameters

 

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.

Type Parameters

 

T
[Missing documentation for "M:CodeJam.Threading.ParallelExtensions.RunInParallel1(System.Collections.Generic.IEnumerable{0},System.Action{``0},System.String)"]

Usage Note

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).

See Also

Reference

ParallelExtensions Class
RunInParallel Overload
CodeJam.Threading Namespace

Clone this wiki locally