vertx / io.vertx.kafka.client.consumer / KafkaConsumer / unsubscribe

# unsubscribe

`abstract fun unsubscribe(): KafkaConsumer<K, V>`

Unsubscribe from topics currently subscribed with subscribe.

Return
current KafkaConsumer instance

`abstract fun unsubscribe(completionHandler: Handler<AsyncResult<Void>>): KafkaConsumer<K, V>`

Unsubscribe from topics currently subscribed with subscribe.

### Parameters

`completionHandler` - handler called on operation completed

Return
current KafkaConsumer instance