DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR RUBY
timeout in rails
require
'timeout'
def
test
Timeout
.
timeout
(
5
)
do
# 5 seconds
sleep
6
end
rescue
puts
'timeout'
end
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#timeout
#rails
ADD COMMENT
Topic
COMMENT
Name
9+2 =
Submit