[DOC] Add documents of constants for IO#wait event mask

This commit is contained in:
Nobuyoshi Nakada 2023-12-18 19:46:24 +09:00
parent 494e6b54ab
commit e9b0b6015e
No known key found for this signature in database
GPG Key ID: 3582D74E1FEE4465

3
io.c
View File

@ -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. */