added interval option to processSortedSet

v1.18.x
Barış Soner Uşaklı 8 years ago
parent 1f5b3ba636
commit b4b68498cd

@ -63,7 +63,11 @@ exports.processSortedSet = function (setKey, process, options, callback) {
start += utils.isNumber(options.alwaysStartAt) ? options.alwaysStartAt : batch + 1;
stop = start + batch;
next();
if (options.interval) {
setTimeout(next, options.interval);
} else {
next();
}
});
});
},

Loading…
Cancel
Save