instance method
Fiber#alive?
() -> bool
fiber.alive? → true or false
cont.c
View on GitHub ↗
VALUE
rb_fiber_alive_p(VALUE fiber_value)
{
return RBOOL(!FIBER_TERMINATED_P(fiber_ptr(fiber_value)));
}
Returns true if the fiber can still be resumed (or transferred to). After finishing execution of the fiber block this method will always return false.
See also
.yield
#backtrace
.set_scheduler
#backtrace_locations
also in
4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0