Created
November 19, 2013 02:00
-
-
Save mikeric/7538993 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
# synchronous ajax calls (one at a time, then | |
# start the next one, etc. then do something) | |
sessions.fetch success -> | |
rooms.fetch success -> | |
do_something | |
# async ajax calls (all at the same time, then | |
# do something when all are finished) | |
$.when(sessions.fetch(), rooms.fetch()).then -> | |
do_something |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment