function that returns a KafkaStream iterator

why the thread sleep?