Method: BBK::App::ThreadPool#shutdown
- Defined in:
- lib/bbk/app/thread_pool.rb
#shutdown ⇒ Object
42 43 44 45 46 47 |
# File 'lib/bbk/app/thread_pool.rb', line 42 def shutdown return if @shutdown @shutdown = true Thread.new { @threads.size.times { @jobs.push(:exit) } } end |