How to Tame the 'async void' Nightmare in C#
January 30, 2023
• 760 views
asyncawaitasync awaitasync voidcsharpdotnetdotnet coreprogrammingcodingasynchronousC# asyncdotnet async.net asyncawait voidasync exceptionsexception handling asyncasync await c#C# exceptionsexceptions in C#C# task exceptionsasync exception c#async exception handling c#async await exception handling c#c# event handlerC# event handler examplec# event handler asyncasync void vs async taskc# async voidc# task exceptions
async void is a pattern many intermediate dotnet programmers are told to avoid like the plague when writing C# applications. However, they one time we're told it's okay is for asynchronous event handlers. In this video, we'll explore how you can use a curious solution for handling exceptions even when your method signature is async void!
Check out more on async event handlers:
https://www.youtube.com/watch?v=aLN0J_RtDRg&list=PLzATctVhnsgh7LXNuEP87DzVB-FvUvyNv
More resources for this video can...
