static void Main()
        {
           var demo = new AsyncAwaitDemo();
           demo.DoStuff();
 
           while (true)
           {
               //System.Threading.Thread.Sleep(2000);
               Console.WriteLine("Doing Stuff on the Main Thread...................");
           }
        }
Exemplo n.º 2
0
        static void Main()
        {
            var demo = new AsyncAwaitDemo();

            demo.DoStuff();

            while (true)
            {
                Console.WriteLine("Doing Stuff on the Main Thread...................");
            }
        }
Exemplo n.º 3
0
        static void Main()
        {
            var demo = new AsyncAwaitDemo();

            demo.Display();

            while (true)
            {
                Console.WriteLine("processing please wait");
            }
        }