Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- puts "Test start"
- puts "Create thread"
- message = ARGV[0] ||= '0'
- begin
- t = Thread.new do
- puts "Start thread"
- begin
- raise "chatched"
- rescue => t_ex
- p message + t_ex.message
- end
- puts "End thread"
- end
- rescue => ex
- p ex.message
- end
- puts "Waiting for the thread to complete"
- t.join
- puts "Test compleated"
Add Comment
Please, Sign In to add comment