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

# unsubscribe

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

Unsubscribe from topics currently subscribed with subscribe.

Return
current KafkaConsumer instance

`open 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