Hey <@U6P03BM0W> it would be appreciated if u can ...
# vertx
c
Hey @dave08 it would be appreciated if u can share your code, it would help me understanding stuff
d
This is what I found handy so far...
Copy code
suspend fun ConfigRetriever.getConfig(): JsonObject =
		awaitResult { getConfig(it) }

fun <T> EventBus.consumer(vertx: Vertx, address: String): ReceiveChannelHandler<Message<T>> =
		vertx.receiveChannelHandler<Message<T>>().apply {
			consumer<T>(address, this)
		}

suspend fun <T> EventBus.awaitSend(address: String, message: Any): Message<T> = awaitResult {
			send<T>(address, message, it)
		}
It makes the bridge between surrounding awaitResult around everything, things look less callbackish...