class Puma::Cluster

def next_worker_index

@!attribute [r] next_worker_index
def next_worker_index
  occupied_positions = @workers.map(&:index)
  idx = 0
  idx += 1 until !occupied_positions.include?(idx)
  idx
end