BrandGhost
The Dangers of Handling Async Event Handlers in C#

The Dangers of Handling Async Event Handlers in C#

There's no dancing around this one - async event handlers in C# are an absolute nightmare. We all know we're not supposed to use async void in our code. We're taught that from day 1 when using async await in C#. But when it comes to the signatures of events, we have no choice but to use async void for our async event handlers! In this video, I'll demonstrate what's going on with async void so you understand exactly where the problems arise. I'll also share several improvements we can work with to try and make our lives easier.
An error has occurred. This application may no longer respond until reloaded. Reload