// Job puts the provided job in focus for the purpose
// of making changes to the job with the scheduler chain
// and finalized by calling Update()
Job puts the provided job in focus for the purpose
of making changes to the job with the scheduler chain
and finalized by calling Update()
// Job puts the provided job in focus for the purpose // of making changes to the job with the scheduler chain // and finalized by calling Update ()
func (s *Scheduler) Job(j *Job) *Scheduler {
	jobs := s.Jobs()
	for index, job := range jobs {
		if job == j {
			s.Swap(len(jobs)-1, index)
		}
	}
	s.updateJob = true
	return s
}
func ( s * Scheduler ) Job ( j * Job ) * Scheduler { jobs := s . Jobs ( ) for index , job := range jobs { if job == j { s . Swap ( len ( jobs ) - 1 , index ) } } s . updateJob = true return s }
Job puts the provided job in focus for the purpose
of making changes to the job with the scheduler chain
and finalized by calling Update()
Job puts the provided job in focus for the purpose of making changes to the job with the scheduler chain and finalized by calling Update ()
// the current job is always last, so put this job there