Find suspendCoroutine calls
ProprietarysuspendCoroutine lacks cancellation hooks — if the surrounding coroutine is cancelled before the continuation resumes, the underlying callback work runs to completion uselessly. Switch to suspendCancellableCoroutine so the continuation block can register an invokeOnCancellation callback.
org. openrewrite. kotlin. coroutines. FindSuspendCoroutineWithoutCancellation$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. coroutines. FindSuspendCoroutineWithoutCancellation$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.