Sets an accurate timeout that respects date, and the result can't be less than the specified amount of milliseconds. Implemented by recursive execution of native setTimeout. The error is about 10ms.
Modern version of setInterval for promises and async functions available in Node.js and browsers.
- View more