Categories: None [Edit]

ruby_timeout_safe

https://rubygems.org/gems/ruby_timeout_safe
https://github.com/sebyx07/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: 178,703 of 182,288
Downloads: 636

Daily

Ranking: 74,483 of 182,276
Downloads: 0

Depended by

RankDownloadsName

Depends on

RankDownloadsName

Owners

#GravatarHandle
1iconpsm