vertx / io.vertx.kotlin.servicediscovery.types / MessageSource / getConsumerAwait

# getConsumerAwait

`suspend fun <T> getConsumerAwait(discovery: ServiceDiscovery, filter: JsonObject): MessageConsumer<T>`

Suspending version of method io.vertx.servicediscovery.types.MessageSource.getConsumer

### Parameters

`discovery` - The service discovery instance

`filter` - The filter, optional

Return

MessageConsumer

NOTE: This function has been automatically generated from io.vertx.servicediscovery.types.MessageSource using Vert.x codegen.

`suspend fun <T> getConsumerAwait(discovery: ServiceDiscovery, filter: (Record) -> Boolean): MessageConsumer<T>`

Suspending version of method io.vertx.servicediscovery.types.MessageSource.getConsumer

### Parameters

`discovery` - The service discovery instance

`filter` - The filter, must not be null

Return

MessageConsumer

NOTE: This function has been automatically generated from io.vertx.servicediscovery.types.MessageSource using Vert.x codegen.