Create a gist now

Instantly share code, notes, and snippets.

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