summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <[email protected]>2023-12-18 19:46:24 +0900
committerNobuyoshi Nakada <[email protected]>2023-12-18 20:17:44 +0900
commite9b0b6015ea393af9771ca23f7493c388ef17858 (patch)
tree70dabe73d3e7ae24780df463ffbf3035295dc9ff /io.c
parent494e6b54ab37355740f88500b75cb701339b7fd9 (diff)
[DOC] Add documents of constants for IO#wait event mask
Diffstat (limited to 'io.c')
-rw-r--r--io.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/io.c b/io.c
index 5924d6cd26..7647dc8dc4 100644
--- a/io.c
+++ b/io.c
@@ -15321,8 +15321,11 @@ Init_IO(void)
/* Can be raised by IO operations when IO#timeout= is set. */
rb_eIOTimeoutError = rb_define_class_under(rb_cIO, "TimeoutError", rb_eIOError);
+ /* Readable event mask for IO#wait. */
rb_define_const(rb_cIO, "READABLE", INT2NUM(RUBY_IO_READABLE));
+ /* Writable event mask for IO#wait. */
rb_define_const(rb_cIO, "WRITABLE", INT2NUM(RUBY_IO_WRITABLE));
+ /* Priority event mask for IO#wait. */
rb_define_const(rb_cIO, "PRIORITY", INT2NUM(RUBY_IO_PRIORITY));
/* exception to wait for reading. see IO.select. */