D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
Fiber
/
Scheduler
/
Filename :
io_wait-i.ri
back
Copy
U:RDoc::AnyMethod[iI"io_wait:ETI"Fiber::Scheduler#io_wait;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"OInvoked by IO#wait, IO#wait_readable, IO#wait_writable to ask whether the ;TI"?specified descriptor is ready for specified events within ;TI"the specified +timeout+.;To:RDoc::Markup::BlankLine o; ; [I"Q+events+ is a bit mask of <tt>IO::READABLE</tt>, <tt>IO::WRITABLE</tt>, and ;TI"<tt>IO::PRIORITY</tt>.;T@o; ; [ I"OSuggested implementation should register which Fiber is waiting for which ;TI"Lresources and immediately calling Fiber.yield to pass control to other ;TI"Nfibers. Then, in the #close method, the scheduler might dispatch all the ;TI",I/O resources to fibers waiting for it.;T@o; ; [I"HExpected to return the subset of events that are ready immediately.;T: @fileI"scheduler.c;T:0@omit_headings_from_table_of_contents_below0I""io_wait(io, events, timeout) ;T0[ I"(p1, p2, p3);T@FI"Scheduler;TcRDoc::NormalClass00