Find Thread(...) constructor calls

Proprietary

Each raw Thread(...) constructor is an unmanaged thread allocation — no pool, no lifecycle. On JVM/Android code that ships with Kotlin coroutines or a structured executor service, these are usually candidates to migrate to a managed scope.

org.openrewrite.kotlin.search.FindThreadConstructors$KtRecipe
mod run . --recipe='org.openrewrite.kotlin.search.FindThreadConstructors$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.