df_debouncer library
A package that provides a practical Debouncer for optimizing performance by controlling the frequency of function calls in response to rapid events.
Classes
-
CacheManager<
T> - A generic, in-memory cache with optional time-based expiration.
- Debouncer
- A practical Debouncer for optimizing performance by controlling the frequency of function calls in response to rapid events.
- Throttle
- Limits the execution rate of a function.
- Throttle120Hz
- A throttle that limits execution to approximately 120 times per second.
- Throttle24Hz
- A throttle that limits execution to approximately 24 times per second.
- Throttle30Hz
- A throttle that limits execution to approximately 30 times per second.
- Throttle48Hz
- A throttle that limits execution to approximately 48 times per second.
- Throttle60Hz
- A throttle that limits execution to approximately 60 times per second.
- ThrottleImmediate
- A throttle that runs immediately and has no cool-down period.