Paquet : libschedule-ratelimiter-perl (0.01-2)
Liens pour libschedule-ratelimiter-perl
Ressources Debian :
- Rapports de bogues
- Developer Information
- Journal des modifications Debian
- Fichier de licence
- Suivis des correctifs pour Debian
Télécharger le paquet source libschedule-ratelimiter-perl :
- [libschedule-ratelimiter-perl_0.01-2.dsc]
- [libschedule-ratelimiter-perl_0.01.orig.tar.gz]
- [libschedule-ratelimiter-perl_0.01-2.debian.tar.xz]
Responsables :
Ressources externes :
- Page d'accueil [metacpan.org]
Paquets similaires :
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 )
Autres paquets associés à libschedule-ratelimiter-perl
|
|
|
|
-
- dep: perl
- langage de rapports et d'extractions pratiques de Larry Wall
Télécharger libschedule-ratelimiter-perl
Architecture | Taille du paquet | Espace occupé une fois installé | Fichiers |
---|---|---|---|
all | 9,4 ko | 27,0 ko | [liste des fichiers] |