Created
September 3, 2012 07:04
-
-
Save framlin/3607488 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 step1(err, result) { | |
//do somethng | |
queryStep2(result, step2); | |
} | |
function step2(err, result) { | |
//do somethng | |
queryStep3(result, step3); | |
} | |
function step3(err, result) { | |
//do somethng | |
} | |
function queryStep1(data, callback) { | |
query("select anything", callback) | |
} | |
function queryStep2(data, callback) { | |
query("select anything", callback) | |
} | |
function queryStep3(data, callback) { | |
query("select anything", callback) | |
} | |
queryStep1({some: "data"}, step1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment