NUnit.Framework.Internal.Execution.ParallelWorkItemDispatcher
ParallelWorkItemDispatcher handles execution of work items by
queuing them for worker threads to process.
namespace NUnit.Framework.Internal.Execution
{
public class ParallelWorkItemDispatcher : IWorkItemDispatcher
{
public int LevelOfParallelism { get; }
public IEnumerable<WorkShift> Shifts { get; }
public IEnumerable<WorkItemQueue> Queues { get; }
public event ShiftChangeEventHandler ShiftStarting;
public event ShiftChangeEventHandler ShiftFinished;
public ParallelWorkItemDispatcher(int levelOfParallelism);
public void Start(WorkItem topLevelWorkItem);
public void Dispatch(WorkItem work);
public void CancelRun(bool force);
}
}