how to asyncernessly delay somthin in node js code example
Example: node js async delay
const { promisify } = require('util');
const delay = promisify(setTimeout);
// Usage:
(async () => {
console.log('1');
await delay(1000);
console.log('2');
})();