Wait for a void async method
If you can change the signature of your function to async Task
then you can use the code presented here
Best practice is to mark function async void
only if it is fire and forget method, if you want to await on, you should mark it as async Task
.
In case if you still want to await, then wrap it like so await Task.Run(() => blah())