Registry / utility / systemtimer

systemtimer

JSON →
library1.2.3rbrubygemsunverified

Provides reliable timeouts using signals instead of green threads.

gem install SystemTimer
INSTALL
IMPORT
SIG · SYSTEMTIMER
S
systemtimer
utilityrubyv1.2.3
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'

Use SystemTimer to enforce a timeout on a block of code.

require 'system_timer' SystemTimer.timeout_after(5) do # potentially long-running operation sleep 10 end
Debug
Known issues
gotchaSystemTimer may not work on all Ruby implementations (e.g., JRuby).
fix
Use Timeout.timeout as a fallback or check compatibility.
affects: >= 1.0.0
Upgrade
Version history
1.2.3latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
11 hits · last 30 days
node
10
Resources
systemtimer — gem install systemtimer · libregistry