» Ubuntu » Packages » lucid (10.04LTS) » perl » libschedule-ratelimiter-perl
lucid  ] [  precise  ] [  trusty  ] [  utopic  ] [  vivid  ]

Package: libschedule-ratelimiter-perl (0.01-1) [universe]

Links for libschedule-ratelimiter-perl


Ubuntu Resources:

Download Source Package libschedule-ratelimiter-perl:


Please consider filing a bug or asking a question via Launchpad before contacting the maintainer directly.

Original Maintainers (usually from Debian):

It should generally not be necessary for users to contact the original maintainer.

External Resources:

Similar packages:

Perl library to prevent events from happening too quickly

Schedule::RateLimiter provides a way to voluntarily restrict how many times a given action may take place within a specified time frame. Such a tool may be useful if you have written something which periodically polls some public resource and want to ensure that you do not overburden that resource with too many requests.

Initially, one might think that solving this problem would be as simple as sleeping for the number of seconds divided by the number of iterations in between each event. However, that would only be correct if the event took no time at all.

If you know exactly how much time each event is going to take then you could build an even more complicated one-liner such as this:

sleep( (seconds / iterations) - single_event_time )

Other Packages Related to libschedule-ratelimiter-perl

  • depends
  • recommends
  • suggests
  • enhances
  • dep: perl (>= 5.6.0-16)
    Larry Wall's Practical Extraction and Report Language

Download libschedule-ratelimiter-perl

Download for all available architectures
Architecture Package Size Installed Size Files
all 9.9 kB68.0 kB [list of files]