Find async { ... }.await() patterns
Proprietaryasync { … }.await() on its own is structurally identical to withContext { … } plus an extra Deferred allocation. Use withContext(ctx) { … } (or just inline the body) — async is for concurrency, not sequencing.
org. openrewrite. kotlin. coroutines. FindAsyncImmediatelyAwait$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. coroutines. FindAsyncImmediatelyAwait$KtRecipe'Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.