vertx / io.vertx.kotlin.mqtt / io.vertx.mqtt.MqttClient / subscribeAwait

# subscribeAwait

`suspend fun MqttClient.subscribeAwait(topic: String, qos: Int): Int`

Suspending version of method io.vertx.mqtt.MqttClient.subscribe

### Parameters

`topic` - topic you subscribe on

`qos` - QoS level

Return

Int

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

`suspend fun MqttClient.subscribeAwait(topics: Map<String, Int>): Int`

Suspending version of method io.vertx.mqtt.MqttClient.subscribe

### Parameters

`topics` - topics you subscribe on

Return

Int

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