Registry / utility / system-timer

system-timer

JSON →
library1.2.4rbrubygemsunverified

Set a timeout based on signals, which are more reliable than Ruby's Timeout module based on green threads.

gem install system_timer
INSTALL
IMPORT
SIG · SYSTEM-TIMER
S
system-timer
utilityrubyv1.2.4
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

SystemTimer
require 'system_timer'

Execute a block with a signal-based timeout

require 'system_timer' SystemTimer.timeout_after(5) do # potentially long-running operation end
Debug
Known issues
gotchaSystemTimer may not work on Windows or JRuby due to signal limitations.
fix
Use Timeout.timeout as a fallback or switch to a cross-platform alternative.
affects: >= 1.0.0
Upgrade
Version history
1.2.4latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
system-timer — gem install system-timer · libregistry