summaryrefslogtreecommitdiff
path: root/scheduler.c
diff options
context:
space:
mode:
authorAlan Wu <[email protected]>2024-12-13 14:21:15 -0500
committerAlan Wu <[email protected]>2024-12-13 14:21:46 -0500
commit5ed1dac21eab6861ea7e9b9501dd3db149577d3b (patch)
treec02bc5129b048b70f305c42f9b9c462256e60dec /scheduler.c
parent89c8d6487c22371032a479fd8b060d931b510670 (diff)
[DOC] Have RDoc pick up Fiber::Scheduler#blocking_operation_wait
... and list it.
Diffstat (limited to 'scheduler.c')
-rw-r--r--scheduler.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/scheduler.c b/scheduler.c
index 53b5b83b02..bb406a5cf6 100644
--- a/scheduler.c
+++ b/scheduler.c
@@ -75,6 +75,7 @@ static ID id_fiber_schedule;
* * #timeout_after
* * #address_resolve
* * #block and #unblock
+ * * #blocking_operation_wait
* * (the list is expanded as Ruby developers make more methods having non-blocking calls)
*
* When not specified otherwise, the hook implementations are mandatory: if they are not
@@ -134,6 +135,7 @@ Init_Fiber_Scheduler(void)
rb_define_method(rb_cFiberScheduler, "block", rb_fiber_scheduler_block, 2);
rb_define_method(rb_cFiberScheduler, "unblock", rb_fiber_scheduler_unblock, 2);
rb_define_method(rb_cFiberScheduler, "fiber", rb_fiber_scheduler, -2);
+ rb_define_method(rb_cFiberScheduler, "blocking_operation_wait", rb_fiber_scheduler_blocking_operation_wait, -2);
#endif
}