vertx / io.vertx.kotlin.servicediscovery / io.vertx.servicediscovery.ServiceDiscovery / publishAwait

# publishAwait

`suspend fun ServiceDiscovery.publishAwait(record: Record): Record`

Publishes a record.

### Parameters

`record` - the record

`resultHandler` - handler called when the operation has completed (successfully or not). In case of success, the passed record has a registration id required to modify and un-register the service.