Created
August 4, 2014 20:24
-
-
Save arkadius/53cca488269cc83ef7d6 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 chain = | |
Phase("Preparation") { in: Int => PreparedData(in) } :: | |
Phase("Validation") { data: PreparedData => ValidatedData(data) } :: | |
Phase("Execution") { data: ValidatedData => Result(data) } :: | |
NilChain() | |
val progress = new MultiPhasedProgress(chain) | |
val result = progress.run(123) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment