D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
IO
/
Filename :
wait-i.ri
back
Copy
U:RDoc::AnyMethod[iI" wait:ETI"IO#wait;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"OWaits until the IO becomes ready for the specified events and returns the ;TI"Isubset of events that become ready, or a falsy value when times out.;To:RDoc::Markup::BlankLine o; ; [I"GThe events can be a bit mask of +IO::READABLE+, +IO::WRITABLE+ or ;TI"+IO::PRIORITY+.;T@o; ; [I"LReturns an event mask (truthy value) immediately when buffered data is ;TI"available.;T@o; ; [ I"JThe second form: if one or more event symbols (+:read+, +:write+, or ;TI"L+:read_write+) are passed, the event mask is the bit OR of the bitmask ;TI"Ocorresponding to those symbols. In this form, +timeout+ is optional, the ;TI"Iorder of the arguments is arbitrary, and returns +io+ if any of the ;TI"events is ready.;T@o; ; [I"3You must require 'io/wait' to use this method.;T: @fileI"ext/io/wait/wait.c;T:0@omit_headings_from_table_of_contents_below0I"uio.wait(events, timeout) -> event mask, false or nil io.wait(*event_symbols[, timeout]) -> self, true, or false ;T0[[I" wait;T@ I"(*args);T@"FI"IO;TcRDoc::NormalClass00