Created
March 30, 2016 20:09
-
-
Save leosilvadev/33a732c57748ad0cde04cdc5f6d81620 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
def init = [name:'Leonardo', age:26] | |
Async(vertx, init).waterfall([{ data -> | |
next(data + [job:'dev']) | |
}, { data -> | |
next(data + [langs:['groovy', 'java']]) | |
}, { | |
fail(new RuntimeException('any error') | |
}], { ex -> | |
println ex.message | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment