Executes a for each operation on an System.Collections.IEnumerable{TSource} in which iterations may run in parallel. Wraps the operation into CMSThread to ensure proper context.
Namespace: CMS.BaseAssembly: CMS.Base (in CMS.Base.dll) Version: 8.0.0.0 (8.1.5347.20411)
Parameters
- source
- Type: System.Collections.Generic IEnumerable TSource
Parallel sources
- body
- Type: System Action TSource
Executing body
- options (Optional)
- Type: System.Threading.Tasks ParallelOptions
Options for executing
- count (Optional)
- Type: System Int32
Number of the items that will be executed. If set, optimizes the performance in case there is none or one items in the source.
Return Value
Type: ParallelLoopResultSee Also