Mega Code Archive
Categories
/
Ruby
/
Threads
Exit a thread
t3 = Thread.new do sleep 20 Thread.exit puts "Can't happen!" end