Show / Hide Table of Contents

Interface IWorkDistributor<R>

A distributor of work that can be done in parallel while needing to return a value.

Inherited Members
IWorkDistributor.Execute(IReadOnlyList<Action>)
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 methods is null.

Extension Methods

Utility.ThrowIfNull<T>(T, string)
In this article
Back to top Generated by DocFX