mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-11 09:53:32 +03:00
10 lines
201 B
JavaScript
10 lines
201 B
JavaScript
|
const util = require('util');
|
||
|
const setTimeoutPromise = util.promisify(setTimeout);
|
||
|
|
||
|
const passTime = async (ms) => {
|
||
|
await setTimeoutPromise(ms);
|
||
|
return 'done';
|
||
|
};
|
||
|
|
||
|
module.exports = passTime;
|