node-ipc/helpers/delay.js
2021-07-02 14:35:02 -07:00

12 lines
No EOL
175 B
JavaScript

async function delay(ms=100) {
return new Promise(
resolve => {
setTimeout(resolve, ms);
}
);
}
export {
delay as default,
delay
}