ruby icon indicating copy to clipboard operation
ruby copied to clipboard

Remove docs for Timeout::Error example in handle_interrupt

Open jpcamara opened this issue 1 year ago • 1 comments

The Timeout::Error example no longer works consistently

  • This PR from the timeout gem (https://github.com/ruby/timeout/pull/30) made it so you have to handle_interrupt on Timeout::ExitException instead of Timeout::Error

  • Efficiency changes to the gem (one shared thread) mean you can't consistently handle timeout errors using handle_timeout: https://github.com/ruby/timeout/issues/41

jpcamara avatar Aug 27 '24 21:08 jpcamara

@olleolleolle @eregon I removed the docs instead of updating them and squashed the commit

jpcamara avatar Aug 29 '24 03:08 jpcamara

@jeremyevans @eregon any chance of getting another look at this? I removed the doc entirely. Would be nice to reduce the confusion around it (I got caught up for awhile trying to make it work for my next concurrency article until I realized it was busted)

jpcamara avatar Sep 07 '24 13:09 jpcamara