Find AsyncTask instantiations

Proprietary

AsyncTask was deprecated in API 30. The Kotlin replacement is viewModelScope.launch { withContext(Dispatchers.IO) { … } } or another coroutine-aware framework. Each match is a candidate for migration.

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