node-ipc/helpers/delay.js

12 lines
175 B
JavaScript
Raw Normal View History

2021-07-03 07:35:02 +10:00
async function delay(ms=100) {
return new Promise(
resolve => {
setTimeout(resolve, ms);
}
);
}
export {
delay as default,
delay
}