Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update IO wait* methods #1242

Merged
merged 1 commit into from
Feb 17, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions core/io/wait.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ class IO
#
# You must require 'io/wait' to use this method.
#
def wait: (Integer events, ?Numeric timeout) -> (self | bool | nil)
| (?Numeric? timeout, *wait_mode mode) -> (self | bool | nil)
def wait: (Integer events, ?Numeric timeout) -> (Integer | false | nil)
| (?Numeric? timeout, *wait_mode mode) -> (self | true | false)

type wait_mode = :read | :r | :readable | :write | :w | :writable | :read_write | :rw | :readable_writable

Expand All @@ -54,7 +54,7 @@ class IO
#
# You must require 'io/wait' to use this method.
#
def wait_readable: (?Numeric? timeout) -> (self | bool | nil)?
def wait_readable: (?Numeric? timeout) -> boolish

# <!--
# rdoc-file=ext/io/wait/wait.c
Expand Down