C# Asynchrony - async/await - A simple & quick intro

added by amazedsaint
11/2/2010 6:58:14 AM

2 Kicks, 155 Views

This post is a quick and simple introduction towards using the async and await keywords. Let us try some simple ‘working’ code first, then we’ll discuss the concepts involved. Consider the following code, where we start a hotel and call our Cook/Chefs to start cooking various dishes. Each cook will take a random time to cook his dish. See the implementation below...