Files
30-seconds-of-code/node_modules/better-queue/test/lib/helper.js
2019-08-20 15:52:05 +02:00

10 lines
180 B
JavaScript

exports.destroyQueues = function () {
[this.q, this.q1, this.q2].forEach(function (q) {
if (!q) return;
setTimeout(function () {
q.destroy();
}, 15);
});
};