Skip to content

M_CodeJam_Threading_ParallelExtensions_RunInParallel_1

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

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

Runs in parallel provided source of actions.

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

Syntax

C#

public static void RunInParallel(
	this IEnumerable<Action> source,
	string processName = "ParallelProcess"
)

VB

<ExtensionAttribute>
Public Shared Sub RunInParallel ( 
	source As IEnumerable(Of Action),
	Optional processName As String = "ParallelProcess"
)

F#

[<ExtensionAttribute>]
static member RunInParallel : 
        source : IEnumerable<Action> * 
        ?processName : string 
(* Defaults:
        let _processName = defaultArg processName "ParallelProcess"
*)
-> unit 

Parameters

 

source
Type: System.Collections.Generic.IEnumerable(Action)
Actions to run.
processName (Optional)
Type: System.String
Process name pattern.

Usage Note

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

See Also

Reference

ParallelExtensions Class
RunInParallel Overload
CodeJam.Threading Namespace

Clone this wiki locally