is it possible to use coroutines internally, but w...
# announcements
t
is it possible to use coroutines internally, but wrap them in a future to pass the result to java?
Copy code
fun myFutureFunction(): ComleteableFuture<String> {
    // convert here?
    return ... myCoroutineFunction();
}

fun myCoroutineFunction() {
    // ... do most things here
}
g
Yes it’s possible, there is special adapter for this in Kotlinx.coroutines
t
nice, thanks!
👍 1