Linux heracles.o2switch.net 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
/
opt
/
alt
/
ruby21
/
share
/
ri
/
2.1.0
/
system
/
Timeout
/
//opt/alt/ruby21/share/ri/2.1.0/system/Timeout/timeout-i.ri
U:RDoc::AnyMethod[iI"timeout:EFI"Timeout#timeout;TF:privateo:RDoc::Markup::Document:@parts[ o:RDoc::Markup::Paragraph; [I"OPerform an operation in a block, raising an error if it takes longer than ;TI"+sec+ seconds to complete.;To:RDoc::Markup::BlankLine o:RDoc::Markup::List: @type: NOTE:@items[o:RDoc::Markup::ListItem:@label[I" +sec+;T; [o; ; [I"FNumber of seconds to wait for the block to terminate. Any number ;TI"Dmay be used, including Floats to specify fractional seconds. A ;TI"Dvalue of 0 or +nil+ will execute the block without any timeout.;To;;[I"+klass+;T; [o; ; [I">Exception Class to raise if the block fails to terminate ;TI"Ein +sec+ seconds. Omitting will use the default, Timeout::Error;T@o; ; [I"EReturns the result of the block *if* the block completed before ;TI"Q+sec+ seconds, otherwise throws an exception, based on the value of +klass+.;T@o; ; [I"PThe exception thrown to terminate the given block cannot be rescued inside ;TI"2the block unless +klass+ is given explicitly.;T@o; ; [I"ONote that this is both a method of module Timeout, so you can <tt>include ;TI"OTimeout</tt> into your classes so they have a #timeout method, as well as ;TI"Ga module method, so you can call it directly as Timeout.timeout().;T: @fileI"lib/timeout.rb;T:0@omit_headings_from_table_of_contents_below00I"sec;F[ I"(sec, klass = nil);T@0FI"Timeout;FcRDoc::NormalModule00