async \ await and Exception Handling

added by bnaya
1/12/2012 4:02:50 AM

4 Kicks, 492 Views

async \ await and Exception Handlingasync \ await and Exception Handling this post will discuss how async / await is handling exceptions. as we mention in previous post, about the async / await concept, await is all about continuation. before .NET 4.5 parallel execution exceptions has to be handle in separate of the synchronic handling. for example: handling ThreadPool execution:Code Snippetvoid Foo(){try {Console.WriteLine("Synchronic");ThreadPool.QueueUserWorkItem(state => {try ...


0 comments