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

Lines changed: 1 addition & 5 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy