You can follow the discussion on Ruby Queue Pop with Timeout, v.2 (Correctly Handling Spurious Wakeups) without having to leave a comment. Cool, huh? Just enter your email address in the form here below and you're all set.