ICoordinatorTInput, TWorkDescription, TWorkerDescriptionAssignWork Method Naiad Help

[This is preliminary documentation and is subject to change.]

Given a worker that is now free, optionally assign it a work item. If no work item is assigned for that worker, the worker will never be presented in a subsequent call to AssignWork, i.e. it is assumed that there is no more work for that worker.

Namespace: Microsoft.Research.Naiad.Frameworks.WorkGenerator
Assembly: Microsoft.Research.Naiad.WorkGenerator (in Microsoft.Research.Naiad.WorkGenerator.dll) Version: 0.5.0.0 (0.5.0.0)
Syntax

C#
bool AssignWork(
	TWorkerDescription worker,
	ref TWorkDescription work
)

Parameters

worker
Type: TWorkerDescription
The worker that is now free
work
Type: TWorkDescription
The work item assigned to the worker, if any

Return Value

Type: Boolean
true if a work item has been assigned, false otherwise
See Also

Reference