<PackageReference Include="NUnit" Version="3.11.0" />

IWorkItemDispatcher

public interface IWorkItemDispatcher
An IWorkItemDispatcher handles execution of work items.
int LevelOfParallelism { get; }

The level of parallelism supported. Zero if not supported.

void CancelRun(bool force)

Cancel the ongoing run completely. If no run is in process, the call has no effect.

void Dispatch(WorkItem work)

Dispatch a single work item for execution. The first work item dispatched is saved as the top-level work item and used when stopping the run.

void Start(WorkItem topLevelWorkItem)

Start execution, performing any initialization. Sets the top level work item and dispatches it.