RateLimited Filter¶
-
template<typename T, uint32_t MinIntervalMs>
struct RateLimited¶ Filter that limits propagation rate to minimum interval.
This stateful filter ensures a minimum time interval (in milliseconds) between propagated changes, useful for rate limiting updates or API calls.
- Since
v0.1.0
// Example: Limit to one update every 100ms Signal<int, 10, RateLimited<int, 100>> throttled(0);Note
Stateful filter. Uses
millis()for timing.Warning
MinIntervalMsmust be greater than 0.
See Also¶
Temporal Filters - Overview