Find functions returning CompletableFuture<T>
ProprietaryReturning 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$KtRecipemod 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.