Skip to content

Instantly share code, notes, and snippets.

@ryanlecompte
Created January 23, 2013 00:07
Show Gist options
  • Save ryanlecompte/4600222 to your computer and use it in GitHub Desktop.
Save ryanlecompte/4600222 to your computer and use it in GitHub Desktop.
Stream.continually from Kafka
./core/src/main/scala/kafka/message/ByteBufferMessageSet.scala
65: Stream.continually(compressed.read(intermediateBuffer)).takeWhile(_ > 0).foreach { dataRead =>
./core/src/main/scala/kafka/producer/async/ProducerSendThread.scala
65: Stream.continually(queue.poll(scala.math.max(0, (lastSend + queueTime) - SystemTime.milliseconds), TimeUnit.MILLISECONDS))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment