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

# unsubscribe

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

Unsubscribe from topics currently subscribed with subscribe.

Return
current KafkaReadStream instance

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

Unsubscribe from topics currently subscribed with subscribe.

### Parameters

`completionHandler` - handler called on operation completed

Return
current KafkaReadStream instance