Last active
December 11, 2015 21:59
-
-
Save arisolt/4666263 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 error () { | |
console.log("timed out"); | |
} | |
function main () { | |
setTimeout(function () { | |
error(); | |
//halt | |
}, 1); | |
async.series([ | |
function (cb) { | |
httprequest({...}, function () { | |
console.log("a"); | |
cb(); | |
}); // takes a few seconds to connect to webserver | |
}, | |
function (cb) { | |
httprequest({...}, function () { | |
console.log("b"); | |
cb(); | |
});// takes a few more seconds to connect | |
} | |
], | |
function (err, result) { | |
} | |
); | |
} | |
main(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment