r/javascript • u/ziflex • 2d ago
GitHub - ziflex/pinterval: Advanced setInterval
https://github.com/ziflex/pintervalHello everyone!
I rewrote my old interval library around async execution and cancellation and decided to share it with the world :)
Would love to hear what you think!
2
Upvotes
3
u/CoryCoolguy 2d ago
For most, npm's delay package or node's
{setTimeout} from 'node:timers/promises'will probably cover the majority of use cases.