wow, that's a lot of promise optimisation

This commit is contained in:
plane000
2018-07-23 19:33:00 +01:00
parent 997e2e95af
commit b7f9269c6d

View File

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