Implementing Then with Await

In a post a while ago, I talked about sequential composition of asynchronous operations.  Now that we have the async/await keywords in C# and Visual Basic, such composition is trivial, and async/await are indeed the recommended way to achieve such composition with these languages. However, in that post I also described a few “Then” methods… Read more

Processing tasks as they complete

Recently I’ve had several folks ask me about how to process the results of tasks as those tasks complete. A developer will have multiple tasks representing asynchronous operations they’ve initiated, and they want to process the results of these tasks, e.g. List<Task<T>> tasks = …; foreach(var t in tasks) {     try { Process(await t);… Read more