This is what i did: ``` fun <T> Continuation...
# coroutines
d
This is what i did:
Copy code
fun <T> Continuation<T>.toVertxHandler(): Handler<AsyncResult<T>> = object : Handler<AsyncResult<T>> {
    override fun handle(event: AsyncResult<T>) {
        if (event.succeeded()) {
            resume(event.result())
        } else {
            resumeWithException(event.cause())
        }
    }
}