vertx / io.vertx.kotlin.servicediscovery / io.vertx.servicediscovery.ServiceDiscovery / getRecordAwait

# getRecordAwait

`suspend fun ServiceDiscovery.getRecordAwait(filter: JsonObject): Record?`

Suspending version of method io.vertx.servicediscovery.ServiceDiscovery.getRecord

### Parameters

`filter` - the filter.

Return

Record?

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

`suspend fun ServiceDiscovery.getRecordAwait(filter: (Record) -> Boolean): Record?`

Suspending version of method io.vertx.servicediscovery.ServiceDiscovery.getRecord

### Parameters

`filter` - the filter, must not be null. To return all records, use a function accepting all records

Return

Record?

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

`suspend fun ServiceDiscovery.getRecordAwait(filter: (Record) -> Boolean, includeOutOfService: Boolean): Record?`

Suspending version of method io.vertx.servicediscovery.ServiceDiscovery.getRecord

### Parameters

`filter` - the filter, must not be null. To return all records, use a function accepting all records

`includeOutOfService` - whether or not the filter accepts OUT OF SERVICE records

Return

Record?

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