Find reactive-framework return types in Kotlin

Proprietary

RxJava's Observable/Flowable/Single/Maybe/Completable and Reactor's Mono/Flux predate Kotlin coroutines. Each match is a candidate for migration to suspend fun (single-shot) or Flow<T> (stream); the corresponding kotlinx-coroutines-rx*/-reactor adapters cover the boundary to downstream Java callers.

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

Recipe list

It runs these recipes, in this order.

  1. Find io.reactivex.Observable/Flowable/Single/Maybe usage in Kotlin
  2. Find Reactor Mono/Flux returns in Kotlin