Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 683fdb4

Browse files
committed
timeout.rb: Update documentation
This is a followup to #49.
1 parent 6b445fc commit 683fdb4

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lib/timeout.rb

+1-5
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# == Synopsis
55
#
66
# require 'timeout'
7-
# status = Timeout::timeout(5) {
7+
# status = Timeout.timeout(5) {
88
# # Something that should be interrupted if it takes more than 5 seconds...
99
# }
1010
#
@@ -13,10 +13,6 @@
1313
# Timeout provides a way to auto-terminate a potentially long-running
1414
# operation if it hasn't finished in a fixed amount of time.
1515
#
16-
# Previous versions didn't use a module for namespacing, however
17-
# #timeout is provided for backwards compatibility. You
18-
# should prefer Timeout.timeout instead.
19-
#
2016
# == Copyright
2117
#
2218
# Copyright:: (C) 2000 Network Applied Communication Laboratory, Inc.

0 commit comments

Comments
 (0)