Find Object.wait calls inside suspend functions
ProprietaryObject.wait() blocks the dispatcher thread on a monitor and cannot be interrupted by coroutine cancellation. Migrate to Channel/Flow/Mutex or a CompletableDeferred for cross-coroutine signaling.
org. openrewrite. kotlin. coroutines. FindObjectWaitInSuspend$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. coroutines. FindObjectWaitInSuspend$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.