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

listEventsWithOptionsAwait

suspend fun ConsulClient.listEventsWithOptionsAwait(options: EventListOptions): EventList

Returns the most recent events known by the agent. This is blocking query unlike io.vertx.ext.consul.ConsulClient. However, the semantics of this endpoint are slightly different. Most blocking queries provide a monotonic index and block until a newer index is available. This can be supported as a consequence of the total ordering of the consensus protocol. With gossip, there is no ordering, and instead X-Consul-Index maps to the newest event that matches the query.

Parameters

options - the blocking options

resultHandler - will be provided with list of events

Returnreference
to this, for fluency *