method

stop

v1_8_7_72 - Show latest stable - Class: Thread
stop()
public

Stops execution of the current thread, putting it into a ``sleep’‘ state, and schedules execution of another thread. Resets the ``critical’‘ condition to false.

   a = Thread.new { print "a"; Thread.stop; print "c" }
   Thread.pass
   print "b"
   a.run
   a.join

produces:

   abc