すべてのオプション
buster  ] [  bullseye  ] [  bookworm  ] [  trixie  ] [  sid  ]
[ ソース: libschedule-ratelimiter-perl  ]

パッケージ: libschedule-ratelimiter-perl (0.01-5)

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 関連パッケージ

  • 依存
  • 推奨
  • 提案
  • enhances

libschedule-ratelimiter-perl のダウンロード

すべての利用可能アーキテクチャ向けのダウンロード
アーキテクチャ パッケージサイズ インストールサイズ ファイル
all 9.2 kB27.0 kB [ファイル一覧]