Find ThreadLocal() allocations
ProprietaryThreadLocal 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$KtRecipemod 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.