3 ms·
I use C# primarily for Unity, and the part about avoiding async void caught me off guard. So, I tested it out and found that in Unity, throwing an exception fro
by binarynate 5y ago
I use C# primarily for Unity, and the part about avoiding async void caught me off guard. So, I tested it out and found that in Unity, throwing an exception from an async void method doesn't crash the process. So, it seems that the advice about avoiding async void is specific to ASP.NET.
- jayd16 5y agoI can confirm this. Unity handles this differently. But this is also true of Exceptions in Unity in general.