vertx / io.vertx.kotlin.mqtt / io.vertx.mqtt.MqttClient / disconnectAwait

disconnectAwait

suspend fun MqttClient.disconnectAwait(): Unit

Disconnects from the MQTT server calling disconnectHandler after disconnection

Parameters

disconnectHandler - handler called when asynchronous disconnect call ends

Returncurrent
MQTT client instance *