Method: Fiber#alive?
- Defined in:
- cont.c
#alive? ⇒ Boolean
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
.
2915 2916 2917 2918 2919 |
# File 'cont.c', line 2915
VALUE
rb_fiber_alive_p(VALUE fiber_value)
{
return RBOOL(!FIBER_TERMINATED_P(fiber_ptr(fiber_value)));
}
|