method

alive?

v1_8_7_72 - Show latest stable - Class: Thread
alive?()
public

Returns true if thr is running or sleeping.

   thr = Thread.new { }
   thr.join                #=> #<Thread:0x401b3fb0 dead>
   Thread.current.alive?   #=> true
   thr.alive?              #=> false