Why is async void bad and how do I await a Task in an object constructor in C#? - Brian Lagunas

added by DotNetKicks
8/5/2020 3:09:18 PM

695 Views

In this video, I answer the question "Why is async void bad and how do I await a Task in an object constructor?". Async void is generally considered bad for 3 reasons: 1. You can't wait for its completion (fire and forget) 2. Any unhandled exceptions will terminate your process (can't be caught) 3.


0 comments