We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6c99460 + 213f4e2 commit 6b445fcCopy full SHA for 6b445fc
1 file changed
README.md
@@ -3,10 +3,6 @@
3
Timeout provides a way to auto-terminate a potentially long-running
4
operation if it hasn't finished in a fixed amount of time.
5
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
-
10
## Installation
11
12
Add this line to your application's Gemfile:
@@ -27,7 +23,7 @@ Or install it yourself as:
27
23
28
24
```ruby
29
25
require 'timeout'
30
-status = Timeout::timeout(5) {
26
+status = Timeout.timeout(5) {
31
# Something that should be interrupted if it takes more than 5 seconds...
32
}
33
```
0 commit comments