Beispiel #1
0
        public void Work()
        {
            AsyncClass asyncClass = new AsyncClass();

            asyncClass.Work();
            Console.WriteLine("I'm on the main thread");

            for (int i = 0; i < 10000; i++)
            {
                Console.Write(".");
            }

            Console.WriteLine("Main thread completed");
        }