ThreadUtility
ThreadUtility provides a set of static methods convenient
for working with threads.
using System.Threading.Tasks;
namespace NUnit.Framework.Internal
{
public static class ThreadUtility
{
internal static void BlockingDelay(int milliseconds)
{
Task.Delay(milliseconds).GetAwaiter().GetResult();
}
}
}