Demostration of async/await keywords and Task class in C# (.NET Core 3.0) in Console Application .
Based on Microsoft - # Asynchronous programming with async and await .
In our console application, we are going to demonstrate using async/await & Task class by using our chef classes to make a breakfast.
- Navigate to folder with .csproj file
dotnet build
dotnet run
- Output can be observed in console
Every Chef class includes a DelayMultiply
property, which can be used to increase/decrease the delay in each chefs task.