RubyGems Navigation menu

ruby_timeout_safe 1.0.1

ruby-timeout-safe is a Ruby library that provides a safe and reliable timeout functionality for executing Ruby blocks. It uses Ruby's threading and monotonic time to ensure that timeouts are enforced even in the presence of blocking operations or long-running computations. The gem defines a `RubyTimeoutSafe` module with a `timeout` method that executes a given Ruby block with a specified timeout duration. If the block execution exceeds the timeout, a `Timeout::Error` exception is raised. This implementation leverages Ruby's built-in threading and monotonic time functions to provide a robust timeout mechanism.

Gemfile:
= クリップボードにコピー コピー完了!

インストール:
=

バージョン履歴:

  1. 1.0.1 - August 28, 2024 (9.5KB)
  2. 1.0.0 - August 27, 2024 (9.5KB)
  3. 0.2.0 - July 05, 2024 (9.5KB)
  4. 0.1.0 - July 04, 2024 (9.5KB)

所有者:

プッシュ者:

作者:

  • sebi

SHA 256チェックサム:

= クリップボードにコピー コピー完了!

累計ダウンロード数 652

このバージョンのみ 148

このバージョンがリリースされたのは:

ライセンス:

MIT

必要なRubyのバージョン: >= 3.0.0

リンク: