Skip to content

Commit 6b445fc

Browse files
authored
Merge pull request #49 from jpcamara/fix-documentation-for-timeout-method
Global #timeout was removed 5 years ago
2 parents 6c99460 + 213f4e2 commit 6b445fc

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

README.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@
33
Timeout provides a way to auto-terminate a potentially long-running
44
operation if it hasn't finished in a fixed amount of time.
55

6-
Previous versions didn't use a module for namespacing, however
7-
#timeout is provided for backwards compatibility. You
8-
should prefer Timeout.timeout instead.
9-
106
## Installation
117

128
Add this line to your application's Gemfile:
@@ -27,7 +23,7 @@ Or install it yourself as:
2723

2824
```ruby
2925
require 'timeout'
30-
status = Timeout::timeout(5) {
26+
status = Timeout.timeout(5) {
3127
# Something that should be interrupted if it takes more than 5 seconds...
3228
}
3329
```

0 commit comments

Comments
 (0)