From: SASADA Koichi Date: 2012-02-26T18:11:22+09:00 Subject: [ruby-core:42948] Re: [ruby-trunk - Feature #5958] ThreadGroup#join (2012/02/26 17:32), Masaki Matsushita wrote: > I think ThreadGroup#join may be more useful if it catches exceptions from all its threads and handles them like the following. > > thgrp.join do |th| # each thread which causes an exception > # handle an exception > end This behavior is very confusing for me. I know it is difficult design problem. This is my 1 min considered version: def join @threads.map{|th| begin result = th.join rescue Exception => e result = e end [th, e] } # or return Hash (th => result) end -- // SASADA Koichi at atdot dot net