Interface IWorkDistributor<R>
A distributor of work that can be done in parallel while needing to return a value.
Inherited Members
Namespace: SpiceSharp.Components
Assembly: SpiceSharp.dll
Syntax
public interface IWorkDistributor<R> : IWorkDistributor
Type Parameters
Name | Description |
---|---|
R | The return type. |
Methods
Execute(IReadOnlyList<Func<R>>)
Executes the specified methods and accumulates the result.
Declaration
R Execute(IReadOnlyList<Func<R>> methods)
Parameters
Type | Name | Description |
---|---|---|
IReadOnlyList<Func<R>> | methods | The methods to be executed. |
Returns
Type | Description |
---|---|
R | The combined result. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | Thrown if |