alive?()
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. You need to require ‘fiber’ before using this method.
VALUE rb_fiber_alive_p(VALUE fibval) { const rb_fiber_t *fib; GetFiberPtr(fibval, fib); return FIBER_TERMINATED_P(fib) ? Qfalse : Qtrue; }