Added a print queue and rate limiting for the API

This commit is contained in:
plane000
2018-07-19 14:35:45 +01:00
parent 436e5726b1
commit 566c7fb0ad
7 changed files with 85 additions and 14 deletions

7
helper.js Normal file
View File

@@ -0,0 +1,7 @@
module.exports.sleep = function(ms) {
return new Promise((resolve, reject) => {
setTimeout(() => {
resolve();
}, ms);
});
}