How to Wait or Pause in Node.js
View on Twitter
💡 Looking for a native implementation of sleep/delay in Node.js? Well, here you go!
*Available from Node.js 15 and up
![Native delay/sleep implementation by importing setTimeout from "timers/promises" core API and running with: await setTimeout(1000)](/images/tips/wait-in-nodejs.png)
💡 Looking for a native implementation of sleep/delay in Node.js? Well, here you go!
*Available from Node.js 15 and up