Method: Contender::Pool::PoolExecutor#prestart!

Defined in:
lib/contender/pool/pool_executor.rb

#prestart!Integer

Returns:

  • (Integer)


172
173
174
175
176
177
178
179
180
# File 'lib/contender/pool/pool_executor.rb', line 172

def prestart!
  count = 0

  while add_worker true
    count += 1
  end

  count
end