Created
March 14, 2011 22:00
-
-
Save p3t0r/869967 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val bfr = new BigFailRepository with Retrying[String] | |
println("failed result: " + bfr.withConnection {conn => Option("failure result")}) | |
val sfr = new SmallFailRepository with Retrying[String] | |
println("success result: " + sfr.withConnection {conn => Option("should fail first, succeed later")}) | |
val nfr = new NoFailRepository with Retrying[String] | |
println("success result: " + nfr.withConnection {conn => Option("should not fail result")}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment