Interface ISupportReduction
Optional interface to be implemented by workers that need to implement reduction.
Namespace: DNVGL.One.Compute.Core.Worker
Assembly: DNVGL.One.Compute.Core.dll
Syntax
public interface ISupportReduction
Methods
View SourceReduceAsync(IWorkerExecutionStatusNotificationService, IWorkUnit, IEnumerable<IResult>)
Reduces the asynchronous.
Declaration
Task<object> ReduceAsync(IWorkerExecutionStatusNotificationService workerExecutionStatusNotificationService, IWorkUnit workUnit, IEnumerable<IResult> dependencyResults)
Parameters
Type | Name | Description |
---|---|---|
IWorkerExecutionStatusNotificationService | workerExecutionStatusNotificationService | The worker execution status notification service. |
IWorkUnit | workUnit | The work unit containing input to the reduction. |
IEnumerable<IResult> | dependencyResults | The results from work units that |
Returns
Type | Description |
---|---|
Task<System.Object> | The result of the task - which is a product-specific object |
Remarks
When workUnit
is the reduction task of a ParallelWork, the dependencyResults
will
contain the IResult of each child work unit of the ParallelWork.