stop? -> bool[permalink][rdoc]-
スレッドが終了(dead)あるいは停止(stop)している時、true を返します。
例a = Thread.new { Thread.stop } b = Thread.current a.stop? # => true b.stop? # => false[SEE_ALSO] Thread#alive?, Thread#status
このマニュアルは既にメンテナンスが終了したバージョンの Ruby を対象としています。 最新版のマニュアルへ
stop? -> bool[permalink][rdoc]スレッドが終了(dead)あるいは停止(stop)している時、true を返します。
例a = Thread.new { Thread.stop }
b = Thread.current
a.stop? # => true
b.stop? # => false
[SEE_ALSO] Thread#alive?, Thread#status