From: Ian Whitlock Date: 2008-01-02T02:00:25+09:00 Subject: Re: Why not call Thread.join? Robert Klemme wrote: > I prefer the solution that does not join in the method but returns > Threads. If you think about it, that version is significantly more > flexible. You can join those threads immediately > > an_enum.each_simultaneously {|e| ... }.each {|th| th.join} > > but you can as well do some work in between > > threads = an_enum.each_simultaneously {|e| ... } > do_some_work > ... > threads.each {|th| th.join} > Thanks. That helps both with my understanding the significance of collect and threads. Ian -- Posted via http://www.ruby-forum.com/.