DecayFn typedef
DecayFn =
(int, bool) Function(DecayingValue value)
DecayFn applies a decay to the peer's score. The implementation must call DecayFn at the interval supplied when registering the tag.
It receives a copy of the decaying value, and returns the score after applying the decay, as well as a flag to signal if the tag should be erased.
Implementation
typedef DecayFn = (int, bool) Function(DecayingValue value);