Regulator.Limit.update
You're seeing just the callback
update
, go back to Regulator.Limit module for more information.
Specs
update(term(), pos_integer(), Regulator.Window.t()) :: {term(), pos_integer()}
Recalculates the new limit based on the previous limit, the most recent window, and the configuration for the limit. Must return the limit configuration with the new limit in a tuple.