ThrottleDebounce

🚗 Rate-limit your actions and funcs by throttling and debouncing them. Retry when an exception is thrown.

APACHE-2.0 License

Stars
37

Bot releases are visible (Hide)

ThrottleDebounce - 2.0.0 Latest Release

Published by Aldaviva over 2 years ago

  • 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.
ThrottleDebounce - Fix throttled execution running too soon after an earlier trailing execution

Published by Aldaviva about 4 years ago

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.

ThrottleDebounce -

Published by Aldaviva almost 5 years ago

Allow functions and actions with no arguments to be throttled.

Package on NuGet Gallery

Badges
Extracted from project README
Nuget GitHub Workflow Status Coveralls Strategies for Rate-Limiting