Skip to content

Instantly share code, notes, and snippets.

@sheki
Created February 10, 2012 06:29
Show Gist options
  • Save sheki/1787190 to your computer and use it in GitHub Desktop.
Save sheki/1787190 to your computer and use it in GitHub Desktop.
func() = {
var dataList = List[Array[Byte]]()
breakable {
for (i <- 0 until noItems) {
val response: GetResponse = channel.basicGet(queueName, true)
if (response != null) {
dataList = response.getBody :: dataList
}
else {
break()
}
}
}
dataList
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment