``` inline suspend fun <T> vx(crossinline ca...
# coroutines
h
Copy code
inline suspend fun <T> vx(crossinline callback: (Handler<AsyncResult<T>>) -> Unit) = suspendCoroutine<T> { c ->
    callback(Handler {
        if (it.succeeded()) {
            c.resume(it.result())
        } else {
            c.resumeWithException(it.cause())
        }
    })
}