Thread.stop â nil
Class Public methods
Stops execution of the current thread, putting it into a âsleep'' state, and schedules execution of another thread.
a = Thread.new { print "a"; Thread.stop; print "c" }
sleep 0.1 while a.status!='sleep'
print "b"
a.run
a.join
produces:
abc
Please login to continue.