Categories: None [Edit]
ruby_timeout_safe
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.
Total
Ranking: 74,426 of 187,967
Downloads: 12,689
Daily
Ranking: 163,377 of 187,960
Downloads: 2
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
| Rank | Downloads | Name |
|---|
Depends on
| Rank | Downloads | Name |
|---|
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | psm |