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

NUnit.Framework.Internal.Execution.EventQueue<T>

public abstract class EventQueue<T>
Implements a template for a queue of work items each of which is queued as a WaitCallback. It can handle any event types.
namespace NUnit.Framework.Internal.Execution { public abstract class EventQueue<[System.Runtime.CompilerServices.Nullable(2)] T> { public int Count { get; } public void Enqueue(T e); public T Dequeue(bool blockWhenEmpty); public void Stop(); protected EventQueue(); } }