Find Spring coroutine-migration candidates

Proprietary

Controllers and clients that work today with Mono/Flux chaining but read more naturally as suspending Kotlin: Mono<T> returns from mapping methods (could be suspend fun foo(): T) and bodyToMono(X::class.java) patterns (awaitBody<X>()).

org.openrewrite.kotlin.spring.FindSpringCoroutineCandidates$KtRecipe
mod run . --recipe='org.openrewrite.kotlin.spring.FindSpringCoroutineCandidates$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 @GetMapping/@PostMapping/... methods returning Mono<T>
  2. Find WebClient.bodyToMono(X::class.java) calls