Class TPLBooleanAndWorkDistributor
An IWorkDistributor<R> that combines the results using the boolean And operator.
Inherited Members
Namespace: SpiceSharp.Components.ParallelComponents
Assembly: SpiceSharp.dll
Syntax
public class TPLBooleanAndWorkDistributor : TPLWorkDistributor, IWorkDistributor<bool>, IWorkDistributor
Methods
Execute(IReadOnlyList<Func<bool>>)
Executes the specified methods and accumulates the result.
Declaration
public bool Execute(IReadOnlyList<Func<bool>> methods)
Parameters
Type | Name | Description |
---|---|---|
IReadOnlyList<Func<bool>> | methods | The methods to be executed. |
Returns
Type | Description |
---|---|
bool | The combined result. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | Thrown if |