Find Thread.Sleep usage

Proprietary

Detect Thread.Sleep() which blocks the thread. Use await Task.Delay() in async contexts instead.

OpenRewrite.Recipes.CSharp.CodeQuality.Style.FindDoNotUseSleep
mod run . --recipe=OpenRewrite.Recipes.CSharp.CodeQuality.Style.FindDoNotUseSleep

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