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(); }
public static async Task Main(string[] args) { SyncCooker.Work(); // await AllAtOnceCooker.Work(); // await AsyncCooker.Work(); }