@@ -77,6 +77,8 @@ wait_for_single_fd(rb_io_t *fptr, int events, struct timeval *tv)
77
77
*
78
78
* Returns number of bytes that can be read without blocking.
79
79
* Returns zero if no information available.
80
+ *
81
+ * You must require 'io/wait' to use this method.
80
82
*/
81
83
82
84
static VALUE
@@ -122,6 +124,8 @@ io_wait_event(VALUE io, int event, VALUE timeout)
122
124
* io.ready? -> true or false
123
125
*
124
126
* Returns +true+ if input available without blocking, or +false+.
127
+ *
128
+ * You must require 'io/wait' to use this method.
125
129
*/
126
130
127
131
static VALUE
@@ -154,6 +158,8 @@ io_ready_p(VALUE io)
154
158
* Waits until IO is readable and returns +true+, or
155
159
* +false+ when times out.
156
160
* Returns +true+ immediately when buffered data is available.
161
+ *
162
+ * You must require 'io/wait' to use this method.
157
163
*/
158
164
159
165
static VALUE
@@ -193,6 +199,8 @@ io_wait_readable(int argc, VALUE *argv, VALUE io)
193
199
*
194
200
* Waits until IO is writable and returns +true+ or
195
201
* +false+ when times out.
202
+ *
203
+ * You must require 'io/wait' to use this method.
196
204
*/
197
205
static VALUE
198
206
io_wait_writable (int argc , VALUE * argv , VALUE io )
@@ -228,6 +236,8 @@ io_wait_writable(int argc, VALUE *argv, VALUE io)
228
236
*
229
237
* Waits until IO is priority and returns +true+ or
230
238
* +false+ when times out.
239
+ *
240
+ * You must require 'io/wait' to use this method.
231
241
*/
232
242
static VALUE
233
243
io_wait_priority (int argc , VALUE * argv , VALUE io )
@@ -295,6 +305,8 @@ wait_mode_sym(VALUE mode)
295
305
*
296
306
* Optional parameter +mode+ is one of +:read+, +:write+, or
297
307
* +:read_write+.
308
+ *
309
+ * You must require 'io/wait' to use this method.
298
310
*/
299
311
300
312
static VALUE
0 commit comments