I am a newbie in Kotlin world and would like to know, if it is possible to convert CompletableFuture to Coroutine or how to use togheter.
Why I would like to do that, because all methods of AsyncCrudRepository returns CompletableFuture.
I am a newbie in Kotlin world and would like to know, if it is possible to convert CompletableFuture to Coroutine or how to use togheter.
Why I would like to do that, because all methods of AsyncCrudRepository returns CompletableFuture.
You should use the following: https://github.com/Kotlin/kotlinx.coroutines/tree/master/integration/kotlinx-coroutines-jdk8
Maven/Gradle: https://mvnrepository.com/artifact/org.jetbrains.kotlinx/kotlinx-coroutines-jdk8
It is the official jdk8 integration by the kotlin team. Well maintained, and contains examples and documentation on how to use with CompletableFuture