code: func (t *Throttler) BatchEndIndex() int {
  	end := (atomic.LoadInt32(&t.jobsStarted) + 1) * atomic.LoadInt32(&t.batchSize)
  	if end > atomic.LoadInt32(&t.batchingTotal) {
  		end = atomic.LoadInt32(&t.batchingTotal)
  	}
  	return int(end)
  }
docs: // BatchEndIndex returns the ending index for the next batch. It either returns the full batch size
  // or the remaining amount of jobs. The job count isn't modified
  // until th.Throttle() is called, so if you don't call Throttle before executing this
  // again, it will return the same index as before.