You can define `background{}` like this: ``` fun ...
# coroutines
e
You can define
background{}
like this:
Copy code
fun background(block: suspend () -> Unit) {
    block.startCoroutine(completion = object : Continuation<Unit> {
        override fun resume(value: Unit) {} // done - nothing to do
        override fun resumeWithException(exception: Throwable) {
            exception.printStackTrace() // log exception
        }
    })
}