alive?

thr.alive? â true or false
Instance Public methods

Returns true if thr is running or sleeping.

1
2
3
4
thr = Thread.new { }
thr.join                #=> #<Thread:0x401b3fb0 dead>
Thread.current.alive?   #=> true
thr.alive?              #=> false
doc_ruby_on_rails
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.