Remembers when each error last produced a push so :occurrence notifications are rate-limited
per error. State lives in an ETS table owned by this process; it is not persisted.
Summary
Functions
Whether a push for key is allowed now, given a minimum gap of interval_ms. Records the send when allowed.
Returns a specification to start this module under a supervisor.
Forgets everything (tests).
Records that key was just sent.
Functions
@spec allow?(term(), non_neg_integer()) :: boolean()
Whether a push for key is allowed now, given a minimum gap of interval_ms. Records the send when allowed.
Returns a specification to start this module under a supervisor.
See Supervisor.
Forgets everything (tests).
Records that key was just sent.