IO.select(read_array[, write_array[, error_array[, timeout]]]) â array or nil
Instance Public methods
Calls select(2) system call. It monitors given arrays of IO
objects, waits one or more of IO objects ready for reading,
are ready for writing, and have pending exceptions respectably, and returns
an array that contains arrays of those IO objects.
It will return nil if optional timeout value is given
and no IO object is ready in timeout seconds.
Parameters
read_array
an array