From: SASADA Koichi Date: 2012-09-19T05:21:09+09:00 Subject: [ruby-core:47576] Re: feature request: thread pool class I think it should be done by ThreadGroup. How about to extend ThreadGroup for this purpose? (2012/09/17 12:29), Roger Pack wrote: > It has always seemed a bit odd to me that Ruby's sdlib doesn't have some kind of > threadpool class. > > I know it's easy to roll your own, but it would be slightly easier to > be able to do something like > > a = [1,2,3] > ThreadPool.new(a).map{|number| > number*3 > } > > Or the lik. > Feedback welcome. If none I'll file a feature request redmine. > > Thank you. > -roger- > related: http://stackoverflow.com/questions/3840751/why-doesnt-ruby-have-a-threadpool-built-in/3841111#3841111 > -- // SASADA Koichi at atdot dot net