Skip to content

Instantly share code, notes, and snippets.

@mohamedmansour
Created February 19, 2011 14:45
Show Gist options
  • Save mohamedmansour/835093 to your computer and use it in GitHub Desktop.
Save mohamedmansour/835093 to your computer and use it in GitHub Desktop.
Asynchronous Function Chaining
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