From: "ko1 (Koichi Sasada)" Date: 2012-10-30T08:46:34+09:00 Subject: [ruby-core:48563] [ruby-trunk - Feature #5958][Rejected] ThreadGroup#join Issue #5958 has been updated by ko1 (Koichi Sasada). Status changed from Assigned to Rejected Now, I reject this ticket. I think your proposal is very useful. To introduce thread set manipulation is needed. But I feel it is not mature. Please re-design ThreadGroup and make another tickets. ---------------------------------------- Feature #5958: ThreadGroup#join https://bugs.ruby-lang.org/issues/5958#change-31944 Author: Glass_saga (Masaki Matsushita) Status: Rejected Priority: Normal Assignee: ko1 (Koichi Sasada) Category: core Target version: =begin I propose the method ThreadGroup#join. Calling thread waits all threads in receiving threadgroup. thgrp = ThreadGroup.new thgrp.add(Thread.new{ sleep 1 }) thgrp.join #=> # Time limit to run the threads in the threadgroup can be specified. If the time limit expires, nil will be returned. thgrp = ThreadGroup.new thgrp.add(Thread.new{}) thgrp.add(Thread.new{ sleep }) thgrp.join(0.1) #=> nil I think it is useful to wait grouped threads together. =end -- http://bugs.ruby-lang.org/