With coroutines you’d write it simply as: ``` susp...
# coroutines
e
With coroutines you’d write it simply as:
Copy code
suspend fun sendEmail(params: Params): Result {
    val pp = doSomePrepwork(params) // non-blocking
    val ir = makeSomeRestCall(pp) // suspending invocation, can take long-time
    return doSomePostProcessing(ir) // non-blocking
}