mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[DOC] fixed the method name
This commit is contained in:
parent
e658040266
commit
fee1b98fde
1 changed files with 3 additions and 3 deletions
|
|
@ -65,17 +65,17 @@ public C interface:
|
||||||
class Scheduler
|
class Scheduler
|
||||||
# Wrapper for rb_wait_readable(int) C function.
|
# Wrapper for rb_wait_readable(int) C function.
|
||||||
def wait_readable_fd(fd)
|
def wait_readable_fd(fd)
|
||||||
wait_readable(::IO.from_fd(fd, autoclose: false))
|
wait_readable(::IO.for_fd(fd, autoclose: false))
|
||||||
end
|
end
|
||||||
|
|
||||||
# Wrapper for rb_wait_readable(int) C function.
|
# Wrapper for rb_wait_readable(int) C function.
|
||||||
def wait_writable_fd(fd)
|
def wait_writable_fd(fd)
|
||||||
wait_writable(::IO.from_fd(fd, autoclose: false))
|
wait_writable(::IO.for_fd(fd, autoclose: false))
|
||||||
end
|
end
|
||||||
|
|
||||||
# Wrapper for rb_wait_for_single_fd(int) C function.
|
# Wrapper for rb_wait_for_single_fd(int) C function.
|
||||||
def wait_for_single_fd(fd, events, duration)
|
def wait_for_single_fd(fd, events, duration)
|
||||||
wait_any(::IO.from_fd(fd, autoclose: false), events, duration)
|
wait_any(::IO.for_fd(fd, autoclose: false), events, duration)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue