method

wakeup

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

Marks thr as eligible for scheduling (it may still remain blocked on I/O, however). Does not invoke the scheduler (see Thread#run).

   c = Thread.new { Thread.stop; puts "hey!" }
   c.wakeup

produces:

   hey!