mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
[DOC] Have RDoc pick up Fiber::Scheduler#blocking_operation_wait
... and list it.
This commit is contained in:
parent
89c8d6487c
commit
5ed1dac21e
1 changed files with 2 additions and 0 deletions
|
@ -75,6 +75,7 @@ static ID id_fiber_schedule;
|
||||||
* * #timeout_after
|
* * #timeout_after
|
||||||
* * #address_resolve
|
* * #address_resolve
|
||||||
* * #block and #unblock
|
* * #block and #unblock
|
||||||
|
* * #blocking_operation_wait
|
||||||
* * (the list is expanded as Ruby developers make more methods having non-blocking calls)
|
* * (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
|
* 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, "block", rb_fiber_scheduler_block, 2);
|
||||||
rb_define_method(rb_cFiberScheduler, "unblock", rb_fiber_scheduler_unblock, 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, "fiber", rb_fiber_scheduler, -2);
|
||||||
|
rb_define_method(rb_cFiberScheduler, "blocking_operation_wait", rb_fiber_scheduler_blocking_operation_wait, -2);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue