mcopy/app/lib/delay/index.js

9 lines
130 B
JavaScript
Raw Normal View History

2019-02-08 19:07:35 +00:00
'use strict';
function delay (ms) {
return new Promise((resolve) => {
setTimeout(resolve, ms);
});
}
module.exports = delay;