Created
March 4, 2014 12:37
-
-
Save josephpconley/9345730 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
//Stand-alone logging | |
def editUser = Logged { | |
val result = User.edit | |
Ok(result.toString) | |
} | |
//Stand-alone measured | |
def calc = Measured { | |
//calculate pi using taylor series | |
val result = Pi.calculate(1000) | |
Ok(result.toString) | |
} | |
//Composed | |
def batch = Logged { | |
Measured { | |
val result = User.batchUpload | |
Ok(result.toString) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment