method

wait

v2_6_3 - Show latest stable - Class: IO
wait(*args)
public

Waits until IO is readable or writable without blocking and returns self, or nil when times out. Returns true immediately when buffered data is available. Optional parameter mode is one of :read, :write, or :read_write.