Created
February 19, 2011 14:45
-
-
Save mohamedmansour/835093 to your computer and use it in GitHub Desktop.
Asynchronous Function Chaining
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
function doProcess() { | |
// do something; | |
funcA(data, /*callback*/ function () { | |
// do something; | |
funcB(data, /* callback*/ function () { | |
// do something; | |
funcC(data, /* callback*/ function () { | |
// do something; | |
funcD(data, /* callback*/ function () { | |
// do something; | |
}); | |
}); | |
}); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment