123456789_123456789_123456789_123456789_123456789_

Class: IO

Relationships & Source Files
Inherits: Object
Defined in: ext/io/wait/wait.c

Instance Attribute Summary

Instance Method Summary

Instance Attribute Details

#ready?Boolean (readonly)

Returns true if input available without blocking, or false. Returns nil if no information available.

Instance Method Details

#nreadInteger

Returns number of bytes that can be read without blocking. Returns zero if no information available.

#waitIO, ... #wait(timeout) ⇒ IO, ... #wait_readableIO, ... #wait_readable(timeout) ⇒ IO, ...
Also known as: #wait_readable

Waits until IO is readable without blocking and returns self, or nil when times out. Returns true immediately when buffered data is available.

#waitIO, ... #wait(timeout) ⇒ IO, ... #wait_readableIO, ... #wait_readable(timeout) ⇒ IO, ...

Alias for #wait.

#wait_writableIO #wait_writable(timeout) ⇒ IO?

Waits until IO is writable without blocking and returns self or nil when times out.