Getting a List of All Threads : Thread.main « Threads « Ruby






Getting a List of All Threads


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

 

Related examples in the same category

1.It is the main thread