%PDF- %PDF-
Direktori : /home/t/r/a/tradesc/www/relax/wp-content/plugins/complianz-gdpr/settings/src/utils/ |
Current File : /home/t/r/a/tradesc/www/relax/wp-content/plugins/complianz-gdpr/settings/src/utils/sleeper.js |
/* * helper function to delay after a promise * @param ms * @returns {function(*): Promise<unknown>} */ const sleeper = (ms) => { return function(x) { return new Promise(resolve => setTimeout(() => resolve(x), ms)); }; } export default sleeper;