예제 #1
0
        static void Main(string[] args)
        {
            // Proper Test2.Run() call
            Test2.Run().Wait();

            // Run() waits for the GetStringAsync() inside itself
            Test1.Run();

            TestForTest().Wait();
            // Wrong call. Outer method doesn't finish as expected
        }
예제 #2
0
 public static async Task TestForTest()
 {
     await Test2.Run();
 }