in this sense if you had the code ``` log("start"...
# coroutines
g
in this sense if you had the code
Copy code
log("start")
delay(30_000)
log("point 1!")
doLongRunningJobForCompletableFuture().await()
log("point 2")
callOtherRunningSuspendFunction()
log("done!")
the compiler will actually generate code akin to
Copy code
log("start")
uiThread.scheduleAfter(30_000){
  log("point 1!")
  doLongRunningJobForCompletableFuture().addListener { ex, result -> 
    log("point 2!")
    callOtherRunningSuspendFunction().onResume { result -> {
      log("done!")
    }
  }
}
👍 1