Method: Bixby::ThreadPool#expand

Defined in:
lib/bixby-common/util/thread_pool.rb

#expand(count) ⇒ Object



106
107
108
109
110
111
112
113
114
115
# File 'lib/bixby-common/util/thread_pool.rb', line 106

def expand(count)
  @lock.synchronize do
    logger.debug "expanding by #{count} threads (from #{@size})"
    count.times do
      create_worker
    end
  end

  nil
end