function jsoncall(){
$.getJSON("http://localhost:3000/data", function (data) {...});
$.getJSON("http://localhost:3000/data", function (data) {...});
}
jsoncall.callback(function(){
//do stuff
});
Something like the pseudocode above. Is there a method in JavaScript that considers async calls like the getJSON
above?