using System;
using System.Threading;
using System.Threading.Tasks;
public class Program
{
public static void Main()
Test();
Task.Delay(5000).Wait();
}
public static async Task Test()
var t = await Task.Factory.StartNew(async () =>
await Task.Delay(2000);
Console.WriteLine("StartNew complete");
});
Console.WriteLine("Test complete");