cs-codex-dist-tests/Utils/Time.cs

17 lines
288 B
C#
Raw Normal View History

2023-04-12 11:53:55 +00:00
namespace Utils
{
public static class Time
{
public static void Sleep(TimeSpan span)
{
Thread.Sleep(span);
}
public static T Wait<T>(Task<T> task)
{
task.Wait();
return task.Result;
}
}
}