Do not use async void

Proprietary

Async void methods cannot be awaited and exceptions cannot be caught. Use async Task instead, except for event handlers.

OpenRewrite.Recipes.CSharp.CodeQuality.Performance.FindAsyncVoid
mod run . --recipe=OpenRewrite.Recipes.CSharp.CodeQuality.Performance.FindAsyncVoid

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.