全部搜尋項
buster  ] [  bullseye  ] [  bookworm  ] [  trixie  ] [  sid  ]
[ 原始碼: libschedule-ratelimiter-perl  ]

套件:libschedule-ratelimiter-perl(0.01-2)

libschedule-ratelimiter-perl 的相關連結

Screenshot

Debian 的資源:

下載原始碼套件 libschedule-ratelimiter-perl

維護小組:

外部的資源:

相似套件:

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 )

標籤: 軟體開發: Perl 開發, 函式庫, 實做語言: Perl, 角色: 共用函式庫

其他與 libschedule-ratelimiter-perl 有關的套件

  • 依賴
  • 推薦
  • 建議
  • 增強

下載 libschedule-ratelimiter-perl

下載可用於所有硬體架構的
硬體架構 套件大小 安裝後大小 檔案
all 9。4 kB27。0 kB [檔案列表]