Method: Thread::Pool#join
- Defined in:
- lib/thread/pool.rb
#join ⇒ Object
Join on all threads in the pool.
284 285 286 287 288 289 290 291 292 |
# File 'lib/thread/pool.rb', line 284 def join until @workers.empty? if worker = @workers.first worker.join end end self end |