Class: IO Private

Inherits:
Object show all
Defined in:
sorbet/rbi/upstream.rbi

Overview

This class is part of a private API. This class may only be used in the Homebrew/brew repository. Third parties should avoid using this class if possible, as it may be removed or changed without warning.

https://github.com/sorbet/sorbet/pull/9847

Instance Method Summary collapse

Instance Method Details

#wait_readable(timeout = nil) ⇒ IO, ...

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Waits until IO is readable and returns a truthy value, or a falsy value when times out. Returns a truthy value immediately when buffered data is available.

You must require 'io/wait' to use this method.

Parameters:

  • timeout (Float, Integer, Rational, nil) (defaults to: nil)

Returns:

  • (IO, Boolean, nil)


13
# File 'sorbet/rbi/upstream.rbi', line 13

def wait_readable(timeout = nil); end