Threads Ruby

alarm = Thread.new(self) { sleep(5); Thread.main.wakeup }
puts "Goodbye!";
Thread.stop;
puts "back"