Ruby 4.0 リファレンスマニュアル

instance method Thread#stop?

stop? -> bool[permalink][rdoc][edit]

スレッドが終了(dead)あるいは停止(stop)している時、true を返します。

a = Thread.new { Thread.stop }
b = Thread.current
p a.stop? # => true
p b.stop? # => false

[SEE_ALSO] Thread#alive?, Thread#status