vertx / io.vertx.kotlin.ext.consul / io.vertx.ext.consul.ConsulClient / getValueAwait

getValueAwait

suspend fun ConsulClient.getValueAwait(key: String): KeyValue

Returns key/value pair that corresponding to the specified key. An empty io.vertx.ext.consul.KeyValue object will be returned if no such key is found.

Parameters

key - the key

resultHandler - will be provided with key/value pair

Returnreference
to this, for fluency *