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
gildor
04/09/2019, 6:39 AM
Yes it’s possible, there is special adapter for this in Kotlinx.coroutines