it exposes the same functionality, though as the c...
# coroutines
g
it exposes the same functionality, though as the coroutines guide points out you likely want to name the method
doXAsync
, something like
Copy code
//for kotlin callers
suspend fun doHeavyLifting(args: Arg){
  //...
}

//for java
fun doHeavyLiftingAsync(args: Arg): CompletableFuture<Whatever> = future { doHeavyLifting(args) }
1