What you DIDN'T know about C# Async EventHandlers
February 18, 2023
• 784 views
asyncawaitasync awaitasync voidC#csharpdotnetdotnet coreprogrammingcodingbloghow tocode examplescode samplesasynchronousC# asyncdotnet async.net asyncawait voidasync exceptionsexception handling asynceventhandlerC# eventsC# event handlerC# event handler asyncC# event handler async methodasync C# eventsC# async awaitC# async await explainedC# async await taskC# async exception not caughtc# eventsc# events tutorial
async and EventHandlers in C# just don't seem to mix very well. As soon as you have exceptions, you're in for a world of pain and often left wondering just what the heck broke your application. If you've been having headaches with async event handlers, then check this out!
Disclaimer: While finalizing the blog post for the is article (which came after the video was recorded) I discovered a pretty big flaw with this approach. When you have multiple subscriptions to the same Task EventHandler, wh...
