Skip to content

Commit

Permalink
Update IO wait* methods
Browse files Browse the repository at this point in the history
  • Loading branch information
soutaro committed Feb 17, 2023
1 parent bf2bf0c commit 0d6bc59
Showing 1 changed file with 3 additions and 3 deletions.
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

0 comments on commit 0d6bc59

Please sign in to comment.