Last active
December 7, 2016 10:55
-
-
Save aherve/caeb6f7a32d8d7245ed66477872fac5a 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
| function demoPromise (userId) { | |
| User | |
| .findById(userId) | |
| .then(user => { | |
| doSomethingAsync(user) | |
| .then(result => { | |
| finalResult(user, result) | |
| }) | |
| }) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment