Changes for version 0.2.0 - 2014-12-07
- INCOMPATIBLE API CHANGE:
- rename Sub::Throttler::Rate::EV to Sub::Throttler::Periodic::EV
- user func $target return HASHREF instead of one/two scalar/array
- add sync acquire()
- rename acquire() to try_acquire()
- removed used()
- removed :plugin export tag from Sub::Throttler
- API CHANGE:
- period() can be modified
- add load()
- add save()
- add Sub::Throttler::Rate::AnyEvent
- add Sub::Throttler::algo
- Add support for throttling sync subs. Add support for CODEREF for non-anonymous functions. Add support for class methods and subclasses. Update tests.
Modules
Rate limit sync and async function calls
throttle by quantity
throttle by rate (quantity per time)
throttle by rate (quantity per time)
base class for throttling algorithms
Provides
in lib/Sub/Throttler/Rate/AnyEvent.pm