Threads Ruby

Thread.list.each { |thread| thread.join unless thread == Thread.main }