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

MainThreadWorkItemDispatcher

MainThreadWorkItemDispatcher handles execution of WorkItems by directly executing them on the main thread. This is different from the SimpleWorkItemDispatcher where the work item is dispatched onto its own thread.
public int LevelOfParallelism { get; }

The level of parallelism supported

public void CancelRun(bool force)

This method is not supported for this dispatcher. Using it will throw a NotSupportedException.

public void Dispatch(WorkItem work)

Dispatch a single work item for execution by executing it directly.

public void Start(WorkItem topLevelWorkItem)

Start execution, dispatching the top level work into the main thread.