Sha256: 816bb3a63e435437465d3bca282f567182a6934b4b22a4e5c1c354e63ce51a61
Contents?: true
Size: 1.28 KB
Versions: 17
Compression:
Stored size: 1.28 KB
Contents
class IO # Returns number of bytes that can be read without blocking. Returns zero if no # information available. # def nread: () -> Integer # Returns `true` if input available without blocking, or `false`. # def ready?: () -> boolish # Waits until the IO becomes ready for the specified events and returns the # subset of events that become ready, or `false` when times out. # # The events can be a bit mask of `IO::READABLE`, `IO::WRITABLE` or # `IO::PRIORITY`. # # Returns `true` immediately when buffered data is available. # # Optional parameter `mode` is one of `:read`, `:write`, or `:read_write` # (deprecated). # def wait: (Integer events, ?Numeric timeout) -> (self | bool | nil) | (?Numeric timeout, *wait_mode mode) -> (self | bool | nil) type wait_mode = :read | :r | :readable | :write | :w | :writable | :read_write | :rw | :readable_writable # Waits until IO is readable and returns `true`, or `false` when times out. # Returns `true` immediately when buffered data is available. # def wait_readable: (?Numeric timeout) -> (self | bool | nil)? # Waits until IO is writable and returns `true` or `false` when times out. # def wait_writable: (?Numeric timeout) -> (self | bool | nil)? end
Version data entries
17 entries across 17 versions & 1 rubygems