Releases: Aldaviva/ThrottleDebounce
Releases · Aldaviva/ThrottleDebounce
2.0.0
- Added
Retrier
to execute a delegate multiple times if it throws exceptions - Renamed some classes and methods
- Added automated tests
- Added documentation in Readme and code comments
- Targeting .NET Framework 4.5.2 and .NET Standard 2.0, removing support for .NET Framework 4.0–4.5.1 because Visual Studio 2022 can't compile for those targets.
Fix throttled execution running too soon after an earlier trailing execution
If you have a function that is throttled to run at most once every 1 second with leading and trailing executions, and you invoke it twice at 0.0s, then it will execute once at 0.0s and once at 1.0s. However, a third invocation at 1.2s must not execute until 2.0s, since the duration between the second and third executions would otherwise be 0.2s, which is less than the minimum duration of 1.0s specified.
1.0.2: #1: Let throttle take an action and function with no arguments
Allow functions and actions with no arguments to be throttled.