vertx / io.vertx.kotlin.servicediscovery.spi / io.vertx.servicediscovery.spi.ServicePublisher / publishAwait

publishAwait

suspend fun ServicePublisher.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.