DELETE t1 FROM mdl t1, mdl t2 WHERE t1.userid=t2.userid AND t1.fieldid=t2.fieldid AND t1.id < t2.id
data = [1,2,3,4] rules = [ function(d){ return d.map(x => x * 2); }, function(d){ return d.map(x => x * 2); } ] recursive(0,rules,data); function somelongrunningprocess(rule, data){ var d = $.Deferred(); setTimeout(function(){ var result = rule.call(undefined,data); d.resolve(result); },1000); return d; } function recursive(index, rules, data) { if(index < rules.length) { $.when(somelongrunningprocess(rules[index],data)).then(function(response){ console.log("after_rule",respon...
Comments
Post a Comment