alive? -> boolRuby 4.1 から[permalink][rdoc][edit]-
self がまだ終了していなければ true を返します。
正常に終了した場合も、捕捉されなかった例外で終了した場合も、実行を終えた後は false を返します。
例r = Ractor.new { Ractor.receive } p r.alive? # => true r << :done r.join p r.alive? # => false[SEE_ALSO] Ractor#join, Ractor#value