Node.js github.com

Node `timers/promises` for browser and server  ↦

Node recently introduced timers/promises API which provides functionality such as setTimeout and setInterval but using Promises. Developers usually achieved that functionality with various 3rd-party packages but now they have full STD support with additional features like native cancellation.

So, I thought it would be useful to have that same API available in browsers (even down to IE11) and older Node versions!


Discussion

Sign in or Join to comment or subscribe

Player art
  0:00 / 0:00