End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Fiber::SchedulerInterface#block
block(blocker, timeout = nil)
cont.c
View on GitHub ↗
static VALUE
rb_fiber_scheduler_interface_block(VALUE self)
{
}
Invoked by methods like Thread.join, and by Mutex, to signify that current Fiber is blocked until further notice (e.g. unblock) or until timeout has elapsed.
blocker is what we are waiting on, informational only (for debugging and logging). There are no guarantee about its value.
Expected to return boolean, specifying whether the blocking operation was successful or not.