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

# getRecordAwait

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

Lookups for a single record.

### Parameters

`filter` - the filter.

`suspend fun ServiceDiscovery.getRecordAwait(filter: Function<Record, Boolean>): Record?`

Lookups for a single record.

### Parameters

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

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

Lookups for a single record.

### 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