Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Global #timeout was removed 5 years ago #49

Merged

Conversation

jpcamara
Copy link
Contributor

  • Also update Timeout::timeout to the more common format of Timeout.timeout

I spent like 45 minutes trying to figure out why the top-level timeout didn't work, and then spent more time trying to figure out how it possibly could work based on the current code 😅 . Turns out it was removed years ago - so this updates the docs to reflect that.

* Also update Timeout::timeout to the more common format of Timeout.timeout
@jpcamara jpcamara changed the title Global #timeout was remove 5 years ago Global #timeout was removed 5 years ago Aug 27, 2024
Copy link
Contributor

@olleolleolle olleolleolle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fixes the README's accuracy, and also keeps the example code looking current. Thank you!

@olleolleolle olleolleolle merged commit 6b445fc into ruby:master Aug 28, 2024
18 checks passed
@hsbt
Copy link
Member

hsbt commented Aug 28, 2024

Does anyone update https://github.com/ruby/timeout/blob/master/lib/timeout.rb#L16 too? Thanks

olleolleolle added a commit that referenced this pull request Aug 28, 2024
This is a followup to #49.
olleolleolle added a commit that referenced this pull request Aug 28, 2024
This is a followup to #49.
@jpcamara
Copy link
Contributor Author

Thanks! I also updated the ruby docs for handle_interrupt to fix some inaccuracies based on changes in recent years if either of you can take a look @hsbt @olleolleolle ruby/ruby#11474

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants