diff options
author | Eric Wong <normalperson@yhbt.net> | 2011-04-10 07:42:31 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-04-10 07:42:31 +0000 |
commit | 5170b767ef1bbc94554920959d1792fce43899a9 (patch) | |
tree | 7837183de8203eafeeaadef727567ad35a0172eb /lib | |
parent | 777beb3e27785d2da2865cb5fc0d43f1c158cb5e (diff) | |
download | rainbows-5170b767ef1bbc94554920959d1792fce43899a9.tar.gz |
It's in the JoinThreads module now
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rainbows/thread_pool.rb | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/lib/rainbows/thread_pool.rb b/lib/rainbows/thread_pool.rb index b7860eb..63d57cb 100644 --- a/lib/rainbows/thread_pool.rb +++ b/lib/rainbows/thread_pool.rb @@ -59,17 +59,4 @@ module Rainbows::ThreadPool Rainbows::Error.listen_loop(e) end while Rainbows.alive end - - def join_threads(threads) # :nodoc: - Rainbows.quit! - threads.delete_if do |thr| - Rainbows.tick - begin - thr.run - thr.join(0.01) - rescue - true - end - end until threads.empty? - end end |