mirror of
https://github.com/codex-storage/cs-codex-dist-tests.git
synced 2025-02-04 08:14:18 +00:00
17 lines
288 B
C#
17 lines
288 B
C#
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;
|
|
}
|
|
}
|
|
}
|