Last active
August 29, 2015 14:19
-
-
Save chinmay185/be28ef3450f9fad0eed6 to your computer and use it in GitHub Desktop.
do task1, do task2 and when both are done, do something else
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
fetchUser(username1) | |
.then(function(user1) { | |
fetchUser(username2) | |
.then(function(user2) { | |
makeFriends(user1, user2); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment