Find ThreadLocal() allocations

Proprietary

ThreadLocal ties state to a thread identity that coroutines do not preserve across suspension. Each allocation is a candidate to migrate to a CoroutineContext.Element or to confirm the call site is non-suspending.

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