Breaking Free From Exceptions – A Different Way Forward
Exceptions and exception handling are a core part of C# and many other programming languages. But what If we didn't need to be throwing them?
6 Comments
July 24, 2023
Exceptions and exception handling are a core part of C# and many other programming languages. But what If we didn't need to be throwing them?
If you're writing asynchronous code in C# and using EventHandlers, odds are you've had issues with exceptions. Task EventHandlers might be consideration!
Dealing with async EventHandlers in C# can be very problematic. async void is a pattern cause headaches with exceptions. Check out this simple solution!
Most intermediate dotnet devs writing async await code in C# will come across async void at some point. Here's a creative solution for avoiding the headaches.