2 ms·
I always thought that "async void" methods existed so async methods could be sent to event handlers; AND, I've always believed event handlers should have a top-
by gwbas1c 3y ago
I always thought that "async void" methods existed so async methods could be sent to event handlers; AND, I've always believed event handlers should have a top-level try/catch.
(I personally can't remember using "async void;" seems like something like a goto that technically has a valid use case, but it's simpler to avoid.)