Last active
December 15, 2015 15:49
-
-
Save stanpalatnik/5284963 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
detach { //this creates a new actor | |
completeWith { //we use a completeWith directive which respones with whatever we output at the end of the code block | |
var person = new Person(); | |
person.address = getAddress(address['latitude'], address['longitude']).then((result) => person.address = result) | |
person.save | |
"saved!" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment