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

getValueWithOptionsAwait

suspend fun ConsulClient.getValueWithOptionsAwait(key: String, options: BlockingQueryOptions): 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. This is blocking query unlike io.vertx.ext.consul.ConsulClient

Parameters

key - the key

options - the blocking options

resultHandler - will be provided with key/value pair

Returnreference
to this, for fluency *