Example #1
0
        static async Task Main(string[] args)
        {
            Console.WriteLine(nameof(SyncCooker));
            SyncCooker.Work();

            Console.WriteLine(new string('-', 50));
            Console.WriteLine(nameof(AllAtOnceCooker));
            await AllAtOnceCooker.Work();

            Console.WriteLine(new string('-', 50));
            Console.WriteLine(nameof(AsyncCooker));
            await AsyncCooker.Work();
        }
Example #2
0
 public static async Task Main(string[] args)
 {
     SyncCooker.Work();
     // await AllAtOnceCooker.Work();
     // await AsyncCooker.Work();
 }