Skip to content

Instantly share code, notes, and snippets.

@felipehummel
Created August 8, 2013 18:22
Show Gist options
  • Save felipehummel/6187248 to your computer and use it in GitHub Desktop.
Save felipehummel/6187248 to your computer and use it in GitHub Desktop.
// before:
redisBlocking.blpop(Seq("workList", "otherKeyWithWork"), 5 seconds).map(result => {
result.map(_.map({
case (key, work) => println(s"list $key has work : ${work.utf8String}")
}))
})
// after:
redisBlocking.blpop(Seq("workList", "otherKeyWithWork"), 5 seconds).map { result =>
result.map { r =>
r.map {
case (key, work) => println(s"list $key has work : ${work.utf8String}")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment