In addition to the @repeaterjs/repeater
package, the repeater repository, github organization and package scope contain various async utilities implemented with repeaters.
@repeaterjs/timers
- Cancelable timers usingsetTimeout
andsetInterval
@repeaterjs/limiters
- Async semaphores and throttlers for limiting concurrency@repeaterjs/pubsub
- A generic pubsub class@repeaterjs/react-hooks
- React hooks for working with async generators and repeaters
These packages are experimental and will probably be changed more frequently than the base @repeaterjs/repeater
package, which is more or less stable. If you need greater stability, you are encouraged to copy the code from these packages directly into your codebase. Report back on what works and what doesn’t! Hopefully, the repeaterjs
github organization and npm scope become a place for useful, repeater-based async utilities discovered by the community.