run

thr.run รข thr
Instance Public methods

Wakes up thr, making it eligible for scheduling.

a = Thread.new { puts "a"; Thread.stop; puts "c" }
sleep 0.1 while a.status!='sleep'
puts "Got here"
a.run
a.join

produces:

a
Got here
c
doc_ruby_on_rails
2015-05-17 14:05:51
Comments
Leave a Comment

Please login to continue.