Valetudo/backend/lib/utils/misc.js

14 lines
199 B
JavaScript

/**
* @param {number} ms
* @return {Promise<void>}
*/
function sleep(ms) {
return new Promise((resolve) => {
setTimeout(resolve, ms);
});
}
module.exports = {
sleep: sleep
};