added interval option to processSortedSet

This commit is contained in:
Barış Soner Uşaklı
2017-06-23 17:17:27 -04:00
parent 1f5b3ba636
commit b4b68498cd

View File

@@ -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();
}
});
});
},