Show / Hide Table of Contents

Class TPLWorkDistributor

An IWorkDistributor that simply gives each method its own task using the Task Parallel Library.

Inheritance
object
TPLWorkDistributor
TPLBooleanAndWorkDistributor
Implements
IWorkDistributor
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: SpiceSharp.Components.ParallelComponents
Assembly: SpiceSharp.dll
Syntax
public class TPLWorkDistributor : IWorkDistributor

Methods

Execute(IReadOnlyList<Action>)

Executes the specified methods.

Declaration
public void Execute(IReadOnlyList<Action> methods)
Parameters
Type Name Description
IReadOnlyList<Action> methods

The methods to be executed.

Exceptions
Type Condition
ArgumentNullException

Thrown if methods is null.

Execute<R>(IReadOnlyList<Func<R>>)

Declaration
public R Execute<R>(IReadOnlyList<Func<R>> methods)
Parameters
Type Name Description
IReadOnlyList<Func<R>> methods
Returns
Type Description
R
Type Parameters
Name Description
R

Implements

IWorkDistributor

Extension Methods

Utility.ThrowIfNull<T>(T, string)

See Also

IWorkDistributor
In this article
Back to top Generated by DocFX