Created
August 29, 2014 18:27
-
-
Save joepie91/38f1d4defd62e1bb4492 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
someAsyncMethod().then(function(result) { | |
DoSomethingSynchronous(); | |
return someOtherAsyncMethod("stuff"); | |
}).then(function(result) { | |
return yetAnotherAsyncMethod("things", "and stuff"); | |
}).then(function(result) { | |
console.log("Whoo, we're done!"); | |
return exit(0); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment