public void AsyncTwoExampleTest() { var ae = new AsyncExample(); ae.RunTwoAsync(); Console.WriteLine("This will complete first before the async tasks"); Thread.Sleep(10000); }
public void SyncExampleTest() { var ae = new AsyncExample(); ae.RunSync(); Console.WriteLine("This will complete last"); Thread.Sleep(10000); }