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

CountdownEvent

public class CountdownEvent
A simplified implementation of .NET 4 CountdownEvent for use in earlier versions of .NET. Only the methods used by NUnit are implemented.
public int CurrentCount { get; }

Gets the current count remaining for the CountdownEvent

public int InitialCount { get; }

Gets the initial count established for the CountdownEvent

public CountdownEvent(int initialCount)

Construct a CountdownEvent

public void Signal()

Decrement the count by one

public void Signal(int signalCount)

Decrement the count by the specified amount

public void Wait()

Block the thread until the count reaches zero