Method: Contender::Pool::PoolExecutor#completed_tasks

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

#completed_tasksInteger

Returns:

  • (Integer)


305
306
307
308
309
310
311
312
313
314
315
# File 'lib/contender/pool/pool_executor.rb', line 305

def completed_tasks
  synchronize do
    total = @completed_task_count

    @workers.each do |worker|
      total += worker.completed_task_count
    end

    total
  end
end