Class: IO
Relationships & Source Files | |
Inherits: | Object |
Defined in: | ext/io/wait/wait.c |
Instance Attribute Summary
-
#ready? ⇒ Boolean
readonly
Returns true if input available without blocking, or false.
Instance Method Summary
-
#nread ⇒ Integer
Returns number of bytes that can be read without blocking.
-
#wait ⇒ IO, ...
(also: #wait_readable)
Waits until input is available or times out and returns self or nil when EOF is reached.
-
#wait_readable ⇒ IO, ...
Alias for #wait.
-
#wait_writable ⇒ IO
Waits until
IO
writable is available or times out and returns self or nil when EOF is reached.
Instance Attribute Details
#ready? ⇒ Boolean
(readonly)
Returns true if input available without blocking, or false. Returns nil if no information available.
Instance Method Details
#nread ⇒ Integer
Returns number of bytes that can be read without blocking. Returns zero if no information available.
#wait ⇒ IO
, ...
#wait(timeout) ⇒ IO
, ...
#wait_readable ⇒ IO
, ...
#wait_readable(timeout) ⇒ IO
, ...
Also known as: #wait_readable
IO
, ...
#wait(timeout) ⇒ IO
, ...
#wait_readable ⇒ IO
, ...
#wait_readable(timeout) ⇒ IO
, ...
Waits until input is available or times out and returns self or nil when EOF is reached.
#wait ⇒ IO
, ...
#wait(timeout) ⇒ IO
, ...
#wait_readable ⇒ IO
, ...
#wait_readable(timeout) ⇒ IO
, ...
IO
, ...
#wait(timeout) ⇒ IO
, ...
#wait_readable ⇒ IO
, ...
#wait_readable(timeout) ⇒ IO
, ...
Alias for #wait.
#wait_writable ⇒ IO
#wait_writable(timeout) ⇒ IO
?
IO
#wait_writable(timeout) ⇒ IO
?
Waits until IO
writable is available or times out and returns self or nil when EOF is reached.