Find functions returning CompletableFuture<T>

Proprietary

Returning CompletableFuture<T> from Kotlin code obliges every caller to either .thenCompose chain or .await() through the kotlinx-coroutines-jdk8 bridge. A suspend fun foo(): T integrates with structured concurrency at the language level — keep the future shape only at the Java boundary.

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